Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -24,4 +24,10 @@ def tasks_json():
|
|
24 |
|
25 |
print("Before Pretty Printing JSON Data")
|
26 |
print(tasks)
|
27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
print("Before Pretty Printing JSON Data")
|
26 |
print(tasks)
|
27 |
+
def fix_json():
|
28 |
+
with open("tasks.json", "r") as fix_file:
|
29 |
+
for i, line in enumerate(fix_file.readlines()):
|
30 |
+
print (line)
|
31 |
+
line.replace("Name:",'"Name":')
|
32 |
+
print (line)
|
33 |
+
fix_json()
|