update: update jsonl_to_json

This commit is contained in:
wql 2024-08-12 15:35:18 +08:00
parent 0da139a06b
commit a8fe8b98dc
1 changed files with 2 additions and 1 deletions

View File

@ -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()