I first write the JSON:
$arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5);
print json_encode(array(
"array" => $arr
));
Then in the jQuery I do:
j.post("notifications.php", {}, function(data){
Now this is where I'm a little confused, as I would normally do:
data.array
To get the data, but I'm not sure how to handle the array. data.array[1] didn't work.
Thanks!