Created
January 6, 2017 12:03
-
-
Save rondreas/920bc58cfcd1e402fc02245e74278d44 to your computer and use it in GitHub Desktop.
Load and print json file
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(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