Skip to content

Instantly share code, notes, and snippets.

@francissta
Created March 11, 2014 16:05
Show Gist options
  • Save francissta/9488933 to your computer and use it in GitHub Desktop.
Save francissta/9488933 to your computer and use it in GitHub Desktop.
Minimal python script to check the validity of a JSON file
#!/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