title: Saving dict as JSON so that they are human readable
body: <p>When a dict is saved using json.dump, it is only a single-line. I want to make this a human-readable format such as this website does - <a href="https://jsonformatter.curiousconcept.com" rel="noreferrer">https://jsonformatter.curiousconcept.com</a></p>
  
  <p>How can I do this in python? I tried to capture <code>pprint</code> output, but it is an invalid string to store JSON in.</p>
  
  <p>Specifically, is there an acceptable default way to do this in python  directly?</p>