title: JSON.stringify() - nested objects
body: <p>What's the proper way to use JSON.stringify() on nested objects? I'm getting a bad request from a api call that expects a JSON string:</p>
  
  <pre><code>testData = {"credentials": {"user": "test@email.com", "password": "testpassword", "country": "us"}};
  </code></pre>
  
  <p>when I view the postDasta:</p>
  
  <pre><code>"{"credentials": {"user": "test@email.com", "password": "testpassword", "country": "us"}}";
  
  $.ajax({
      ...
      data: JSON.stringify(testData),
      ...
  });
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>J</p>