title: Read associative array from json in $_POST
body: <p>I am using jQuery to post a json object to my php application. </p>
  
  <pre><code>jQuery.post("save.php",JSON.stringify(dataToSend), function(data){ alert(data); });
  </code></pre>
  
  <p>The json string as pulled from firebug looks like this</p>
  
  <pre><code>{ "data" : [ { "contents" : "This is some content",
          "selector" : "DIV.subhead"
        },
        { "contents" : "some other content",
          "selector" : "LI:nth-child(1) A"
        }
      ],
    "page" : "about_us.php"
  }
  </code></pre>
  
  <p>In php I am trying to turn this into an associative array.</p>
  
  <p>My php code so far is</p>
  
  <pre><code>&lt;?php
  $value = json_decode(stripcslashes($_POST));
  echo $value['page'];
  ?&gt;
  </code></pre>
  
  <p>The response to the ajax call should be "about_us.php" but it comes back blank.</p>