Skip to content

Instantly share code, notes, and snippets.

@EdoardoVignati
Last active August 21, 2019 10:07
Show Gist options
  • Save EdoardoVignati/af834b9f4069adebfe7b8735d5e6477a to your computer and use it in GitHub Desktop.
Save EdoardoVignati/af834b9f4069adebfe7b8735d5e6477a to your computer and use it in GitHub Desktop.
Read JSON into dict and print per line in python
import json
with open('myfile.json') as handle:
dictdump = json.loads(handle.read())
for key, value in dictdump.items():
print(key + " " + value)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment