Created
February 26, 2020 23:05
-
-
Save adenosinew/bfa323176221b70bbd56f627325c50d9 to your computer and use it in GitHub Desktop.
[read and write a json] #python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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