How to incrementally write into a json file : <p>I am writing a program, which requires me to generate a very large <code>json</code> file. I know the traditional way is to dump a dictionary list using <code>json.dump()</code>, but the list just got too big that even the total memory + swap space cannot hold it before it is dumped. Is there anyway to stream it into a <code>json</code> file, i.e., write the data into the <code>json</code> file incrementally?</p>
