Created
May 24, 2012 18:38
-
-
Save prideout/2783373 to your computer and use it in GitHub Desktop.
one-line JSON validator
This file contains 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
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