Thanks a bunch for this. When I first read it I dismissed it thinking you removed the data statement completely. After wrestling with this problem I see it is solved with your solution using formatData … so I prefer to use your solution this way:
contentType: ‘application/json’,
formatData: function (data) {
return JSON.stringify(data);
},
var params = new Object()…. and in the source definition…
var source = {
datatype: “json”,
type: “POST”,
data:params