by BeefySwain · 6y ago · 0 comments
It is normal and (almost always ?) required to parse/de-serialize an entire JSON file at once and hold the contents of it in memory, while the same is often impractical and unnecessary for a CSV (when it is millions of lines). The standard methods and idioms of doing these things in Python reflects this.
It may be normal, but there's no reason it is required. Streaming JSON processing makes sense just like streaming XML processing.