Created
March 11, 2014 16:05
-
-
Save francissta/9488933 to your computer and use it in GitHub Desktop.
Minimal python script to check the validity of a 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
#!/usr/bin/python | |
import json | |
with open("model.json") as json_file: | |
json_data = json.load(json_file) | |
print(json.dumps(json_data, indent=4)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment