I am using jQuery to post a json object to my php application.
jQuery.post(\"save.php\",JSON.stringify(dataToSend), function(data){ alert(data); });
You can avoid to use JSON.stringify and json_decode:
JSON.stringify
json_decode
jQuery.post("save.php", dataToSend, function(data){ alert(data); });
And:
Update:
... but if your really want to use them, then:
jQuery.post("save.php", {json: JSON.stringify(dataToSend)}, function(data){ alert(data); });
page; ?>