Skip to content

Instantly share code, notes, and snippets.

@dannyc5
Created April 29, 2017 15:51
Show Gist options
  • Save dannyc5/157d2541a7c51de5ee5d9b1cf661a488 to your computer and use it in GitHub Desktop.
Save dannyc5/157d2541a7c51de5ee5d9b1cf661a488 to your computer and use it in GitHub Desktop.
# 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