Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Load and print json file
import json
with open(filePath, 'r') as fp:
j = json.load(fp)
print(json.dumps(j, sort_keys=True, indent=2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment