in core/util.py [0:0]
def serialize_ndjson(file, state): import json for elem in state: file.write(json.dumps(elem) + "\n")