Skip to content

Instantly share code, notes, and snippets.

@prideout
Created May 24, 2012 18:38
Show Gist options
  • Save prideout/2783373 to your computer and use it in GitHub Desktop.
Save prideout/2783373 to your computer and use it in GitHub Desktop.
one-line JSON validator
python -c "import json,sys; print json.load(sys.stdin)" < input.txt
cat unformatted.json | python -m json.tool > formatted.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment