Created
September 7, 2012 04:47
-
-
Save zackdever/3663257 to your computer and use it in GitHub Desktop.
pretty print JSON from shell using python executable
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
# credit http://stackoverflow.com/a/1920585/962091 | |
# sorts keys and pretty prints | |
echo '{"foo": "lorem", "bar": "ipsum"}' | python -mjson.tool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment