title: jQuery - How to PUT JSON via Ajax?
body: <p>I am trying to put some JSON formatted data via Ajax with <a href="http://en.wikipedia.org/wiki/JQuery" rel="noreferrer">jQuery</a> to a server. My code looks like this:</p>
  
  <pre><code>$.ajax({
      type: "PUT",
      url: myURL,
      contentType: "application/json",
      data: {"data": "mydata"}
  });
  </code></pre>
  
  <p>But on the server-side, I receive a <code>data=mydata</code> string, instead of the expected JSON. <a href="http://en.wikipedia.org/wiki/Firebug_%28software%29" rel="noreferrer">Firebug</a> tells me the same.</p>
  
  <p>Where is the error?</p>