Hi
I am trying to put some JSON formatted data via Ajax with JQuery to a server. My code look like this:
$.ajax({
type: "PUT",
url: myurl,
contentType: "application/json",
data: {"data": "mydata"}
});
But at server-side i receive a data=mydata
string, instead of the expected JSON. Firebug tells me the same.
Where is the error?