title: Python: Json dumps escape quote
body: <p>There is a POST request which works perfectly when I pass the data as below:</p>
  
  <pre><code>url = 'https://www.nnnow.com/api/product/details'
  
  requests.post(url, data="{\"styleId\":\"BMHSUR2HTS\"}", headers=headers)
  </code></pre>
  
  <p>But when I use <code>json.dumps()</code> on a dictionary and send the response, I do not get the response (response code 504), using <code>headers={'Content-Type': 'application/json'}</code> . Have also tried json parameter of Post requests.</p>
  
  <pre><code>requests.post(url, data=json.dumps({"styleId":"BMHSUR2HTS"}), headers={'content-type': 'application/json'})
  </code></pre>
  
  <p>Now, the data returned by <code>json.dumps({"styleId":"BMHSUR2HTS"})</code> and 
  <code>"{\"styleId\":\"BMHSUR2HTS\"}"</code> is not the same.</p>
  
  <p><code>json.dumps({"styleId":"BMHSUR2HTS"}) == "{\"styleId\":\"BMHSUR2HTS\"}"</code> gives <code>False</code> even though a print on both shows a similar string.</p>
  
  <p>How can I get the same format as <code>"{\"styleId\":\"BMHSUR2HTS\"}"</code> from a dictionary <code>{"styleId":"BMHSUR2HTS"}</code> ?</p>