title: jQuery posting valid json in request body
body: <p>So according to the <a href="http://api.jquery.com/jQuery.ajax/" rel="noreferrer">jQuery Ajax docs</a>, it serializes data in the form of a query string when sending requests, but setting <code>processData:false</code> should allow me to send actual JSON in the body.  Unfortunately I'm having a hard time determining first, if this is happening and 2nd what the object looks like that is being sent to the server.  All I know is that the server is not parsing what I'm sending.</p>
  
  <p>When using <a href="http://ditchnet.org/httpclient/" rel="noreferrer">http client</a> to post an object literal <code>{someKey:'someData'}</code>, it works. But when using jQuery with <code>data: {someKey:'someData'}</code>, it fails.  Unfortunately when I analyze the request in Safari, it says the message payload is <code>[object Object]</code> ... great...  and in Firefox the post is blank...</p>
  
  <p>When logging the body content on the Java side it literally gets <code>[object Object]</code> so how does one send REAL JSON data??</p>
  
  <p>Has anyone had experience with a Java service serializing JSON data in the request body, with the request sent from jQuery?  </p>
  
  <p>BTW here is the full $.ajax request:</p>
  
  <pre><code>$.ajax({
      contentType: 'application/json',
      data: {
          "command": "on"
      },
      dataType: 'json',
      success: function(data){
          app.log("device control succeeded");
      },
      error: function(){
          app.log("Device control failed");
      },
      processData: false,
      type: 'POST',
      url: '/devices/{device_id}/control'
  });
  </code></pre>