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