Skip to content

Instantly share code, notes, and snippets.

@adenosinew
Created February 26, 2020 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adenosinew/bfa323176221b70bbd56f627325c50d9 to your computer and use it in GitHub Desktop.
Save adenosinew/bfa323176221b70bbd56f627325c50d9 to your computer and use it in GitHub Desktop.
[read and write a json] #python
# string:
import json
# json.loads(string)
print ( json.loads(open("in.json","r").read() ) )
dictionary:
import json
# json.load(_io)
print( json.load(open("in.json","r")) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment