Created
April 29, 2017 15:51
-
-
Save dannyc5/157d2541a7c51de5ee5d9b1cf661a488 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# some-json.txt | |
# [ | |
# { | |
# "a": [ | |
# "b", 1 | |
# ] | |
# } | |
# ] | |
import json | |
config = json.loads(open('some-json.txt').read()) | |
print(config[0]) # do stuff w config |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment