I am using jQuery to post a json object to my php application.
jQuery.post(\"save.php\",JSON.stringify(dataToSend), function(data){ alert(data); });
$_POST will not be populated if the request body is not in the standard urlencoded form.
$_POST
Instead, read from the read-only php://input stream like this to get the raw request body:
$value = json_decode(file_get_contents('php://input'));