I have a object in Javascript that I am trying to AJAX POST to a PHP script. Everything worked in jQuery 1.4.1 but now in 1.4.4 or above all empty arrays or empty objects ar
Try setting the traditional option to true:
$.ajax({
type: 'POST',
traditional: true,
url: 'ajax.php',
data: obj,
success: function(data) {
alert(data);
}
});
Have a look at the data and traditional options of the newer API.
And remove the extra comma from after the success callback if you want things to work in IE7.