diff --git a/jsonl_data/jsonl_to_json.py b/jsonl_data/jsonl_to_json.py index eb6917b4..b2ec1e19 100644 --- a/jsonl_data/jsonl_to_json.py +++ b/jsonl_data/jsonl_to_json.py @@ -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()