update: update jsonl_to_json
This commit is contained in:
parent
0da139a06b
commit
a8fe8b98dc
|
@ -9,8 +9,9 @@ def jsonl_to_json(jsonl_file, json_file):
|
|||
# print(jsonl_data[14])
|
||||
|
||||
with open(json_file, 'w', encoding='utf-8') as f:
|
||||
f.write('[' + '\n')
|
||||
for line in jsonl_data:
|
||||
line = line[1:-2]
|
||||
# line = line[1:-2]
|
||||
f.write(' ' + line + ',' + '\n')
|
||||
f.close()
|
||||
|
||||
|
|
Loading…
Reference in New Issue