Example #1
0
def dump(objects, file_obj):
    for object_ in objects:
        file_obj.write(json.dumps(object_))
        file_obj.write("\n")
Example #2
0
 def dump_line(f, line):
     f.write(json.dumps(line).encode("utf-8"))
     f.write("\n".encode("utf-8"))