title: JSON: save one dict per line
body: <p>How do I save a list of python dictionaries to a file, where each <code>dict</code>will be saved in one line? I know I can use <code>json.dump</code> to save the list of dictionaries. But I can only save the list in compact form (the full list in one line) or indented, where for all dictionaries keys a newline is added. </p>
  
  <p>EDIT:</p>
  
  <p>I want my final json file to look like this:</p>
  
  <pre class="lang-none prettyprint-override"><code>[{key1:value,key2:value},
  {key1:value,key2:value},
  ...
  {key1:value,key2:value}]
  </code></pre>