Last active
August 21, 2019 10:07
-
-
Save EdoardoVignati/af834b9f4069adebfe7b8735d5e6477a to your computer and use it in GitHub Desktop.
Read JSON into dict and print per line in python
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
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