I am using jQuery to post a json object to my php application.
jQuery.post(\"save.php\",JSON.stringify(dataToSend), function(data){ alert(data); });
Try:
echo $value->page;
since json_decode's default behaviour is to return an object of type stdClass.
json_decode
stdClass
Alternatively, set the second optional $assoc argument to true:
$assoc
true
$value = json_decode(stripslashes($_POST), true); echo $value['page'];