title: accessing json input with laravel
body: <p>I am using restangular to post a request to users/login</p>
  
  <p>my laravel route is like so</p>
  
  <pre><code>Route::post('users/login', array('as' =&gt; 'login', function () {
      $input = Input::all();
      return Response::json($input);
  }));
  </code></pre>
  
  <p>the data in the post header is formatted like so</p>
  
  <pre><code>{"input":["username":"un","password":"pw","remember":false]}
  </code></pre>
  
  <p>this dosn't work either</p>
  
  <pre><code>{"username":"un","password":"pw","remember":false}
  </code></pre>
  
  <p>this route is returning an empty array [].  I am guessing my input is formatted incorrectly as from the laravel docs</p>
  
  <blockquote>
    <p>Note: Some JavaScript libraries such as Backbone may send input to the
    application as JSON. You may access this data via Input::get like
    normal.</p>
  </blockquote>
  
  <p>edit: it is working with this input ie. no quotes</p>
  
  <p>{username:un,password:pw,remember:false]}</p>