Browse Source

Updating docs.

Taylor Otwell 12 years ago
parent
commit
e7ee6865b1
1 changed files with 10 additions and 0 deletions
  1. 10 0
      laravel/documentation/input.md

+ 10 - 0
laravel/documentation/input.md

@@ -3,6 +3,7 @@
 ## Contents
 
 - [Input](#input)
+- [JSON Input](#json)
 - [Files](#files)
 - [Old Input](#old-input)
 - [Redirecting With Old Input](#redirecting-with-old-input)
@@ -44,6 +45,15 @@ By default, *null* will be returned if the input item does not exist. However, y
 
 > **Note:** The "has" method will return *false* if the input item is an empty string.
 
+<a name="json"></a>
+## JSON Input
+
+When working with JavaScript MVC frameworks like Backbone.js, you will need to get the JSON posted by the application. To make your life easier, we've included the `Input::json` method:
+
+#### Get JSON input to the application:
+
+	$data = Input::json();
+
 <a name="files"></a>
 ## Files