title: CakePHP 2 save data from JSON request
body: <p>The form was created automagicly by CakePHP FormHelper, and request was created like that:</p>
  
  <pre><code>    $.ajax({
          type: "POST",
          url: _url,
          data: JSON.stringify( $("form").serializeArray() ),
          contentType: "application/json; charset=utf-8",
          dataType: "json"
      });
  </code></pre>
  
  <p>In controller I add this line to get proper JSON data:</p>
  
  <pre><code>$this-&gt;RequestHandler-&gt;addInputType('json', array('json_decode', true));
  </code></pre>
  
  <p>but its is not proper, because I can't put it into model save method</p>
  
  <pre><code>(
      [0] =&gt; Array
          (
              [name] =&gt; _method
              [value] =&gt; POST
          )
  
      [1] =&gt; Array
          (
              [name] =&gt; data[ModelName][fieldname]
              [value] =&gt; value of this field
          )
  
  )
  </code></pre>
  
  <p>How to get right data from JSON request ?</p>