title: Storing post data in array in cakephp
body: <p>I am using cakephp to mess around with sending receiving data through post...
  How do I store an array coming in as post data into an array declared inside the controller? I'm doing this:</p>
  
  <pre><code>$data = array();
        if($this-&gt;request-&gt;is('post')){
        $data =$this-&gt;request-&gt;data;
          debug($data);
  </code></pre>
  
  <p>But it's displaying this as response:</p>
  
  <pre><code>array()
  </code></pre>
  
  <p>Please help!</p>
  
  <p>PS-I'm using inbuilt methods to post data via URL using REST. eg. i post to /localhost/cakephp/users.json to send the following data in json: {"user":"asdasd","pass":"asdas"}. I just need some way to compare it with login password in my database but I can't find out if i'm receiving the data! </p>