Omnibus commited on
Commit
f1cdf2d
·
1 Parent(s): f9d9756

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"