I\'m trying to pass a JavaScript object to a PHP script through jquery.ajax(), basically:
jquery.ajax()
var bigArray = new Object(); //Dode //Start loop bigArray[
Isn't it clear enough? json_decode() expects parameter one to be string, not array. But $_POST and $_GET are always arrays. You can pass a member of this array to json_decode().
json_decode()
$_POST
$_GET
To see an array's contents, use this snippet:
echo ""; print_r($_GET); echo "";
"; print_r($_GET); echo "