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