Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,10 +27,10 @@ def query2(fetch_url):
|
|
27 |
#json_object = json.dumps(dictionary, indent=4)
|
28 |
# Writing to sample.json
|
29 |
#json_object=json.load(dictionary)
|
30 |
-
with open("sample.json", "w") as outfile:
|
31 |
#json.dumps(response_dict, indent=4, sort_keys=True)
|
32 |
|
33 |
-
json.dump(dictionary, outfile)
|
34 |
|
35 |
#outfile.write(dictionary)
|
36 |
return "sample.json"
|
|
|
27 |
#json_object = json.dumps(dictionary, indent=4)
|
28 |
# Writing to sample.json
|
29 |
#json_object=json.load(dictionary)
|
30 |
+
with open("sample.json", "w", encoding="utf-8") as outfile:
|
31 |
#json.dumps(response_dict, indent=4, sort_keys=True)
|
32 |
|
33 |
+
json.dump(dictionary, outfile, ensure_ascii=False)
|
34 |
|
35 |
#outfile.write(dictionary)
|
36 |
return "sample.json"
|