Created
July 17, 2014 11:40
-
-
Save romanmt/50e7e4cc52da2f5fd6d1 to your computer and use it in GitHub Desktop.
Pretty print JSON on the command line
From http://ruslanspivak.com/2010/10/12/pretty-print-json-from-the-command-line/
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
| echo"{\"ho\":\"hey\"}" | pp |
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
| alias pp='python -mjson.tool' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment