Created
May 29, 2014 14:09
-
-
Save yurrriq/0474f1ffc8c2296af540 to your computer and use it in GitHub Desktop.
Maybe if I write this out here, I'll never again forget how to pretty print JSON on the command line using Python.
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
#!/bin/bash | |
echo '{"print":"pretty"}' | python -m json.tool |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment