 <p>Use the JavaScript <code>JSON.Stringify()</code> function. Example:</p> <pre><code>$.ajax({ method: "POST", url: "/yourController/yourAction", data: { name: "John", location: "Boston" } }).done(function( data ) { alert(JSON.Stringify(data)); }); </code></pre>