jsonlines
JSON Lines
を扱えるPythonライブラリ
https://github.com/wbolster/jsonlines
https://jsonlines.readthedocs.io/en/latest/
code:python
with jsonlines.open('input.jsonl') as reader:
for obj in reader:
...
with jsonlines.open('output.jsonl', 'w') as writer:
writer.write(...)