Michał Radwański <[email protected]> added the comment:
So this format is just a series of JSON, delimited by a newline.
Instead of changing API, you might consider this piece of code:
def ndjsondump(objects):
return '\n'.join(json.dumps(obj) for obj in objects)
Conversely, first you `str.splitlines`, then `json.loads` each line separately.
Does it satisfy your needs?
----------
nosy: +enedil
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34529>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com