Omnibus commited on
Commit
53b8931
·
1 Parent(s): d41e606

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -26,8 +26,9 @@ def query2(fetch_url):
26
  dictionary=response.json()
27
  #json_object = json.dumps(dictionary, indent=4)
28
  # Writing to sample.json
 
29
  with open("sample.json", "w") as outfile:
30
- json.dump(dictionary, outfile, indent=4)
31
 
32
  #outfile.write(dictionary)
33
  return "sample.json"
 
26
  dictionary=response.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") as outfile:
31
+ json.dumps(json_object, outfile, indent=4)
32
 
33
  #outfile.write(dictionary)
34
  return "sample.json"