Update citekit/attribute/attribute.py
Browse files
citekit/attribute/attribute.py
CHANGED
@@ -39,7 +39,8 @@ def load_json(file_path):
|
|
39 |
with open(file_path, 'r') as file:
|
40 |
data = file.read()
|
41 |
if file_path.endswith('.jsonl'):
|
42 |
-
|
|
|
43 |
objects = json.loads(data)
|
44 |
return objects
|
45 |
|
|
|
39 |
with open(file_path, 'r') as file:
|
40 |
data = file.read()
|
41 |
if file_path.endswith('.jsonl'):
|
42 |
+
joined = "},{".join(data.split("}\n{"))
|
43 |
+
data = f'[{{{joined}}}]'
|
44 |
objects = json.loads(data)
|
45 |
return objects
|
46 |
|