title: JSON dump in Python writing newline character and carriage returns in file.
body: <p>When I open and write a valid json into a file with the command below, it writes newline and carriage return characters into the data.</p>
  
  <pre><code>with open('logs/output.json', 'w') as outfile:
       json.dump(json_data, outfile, indent=2, separators=(',', ': '))
  </code></pre>
  
  <p>output.json looks something like this:</p>
  
  <pre><code>{\r\n \"config\": {\r\n \"app\": {\r\n \"calendar\": {\r\n \"{tenant-key}calendar.reference }
  </code></pre>
  
  <p>How can I prevent this?</p>