Created
December 8, 2018 00:52
-
-
Save mattbague/397f94c52b9400deb38bf7824ceb0012 to your computer and use it in GitHub Desktop.
Pretty JSON CLI
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
function pj { | |
json=$(echo $1 | python -m json.tool) | |
echo $json | pbcopy | |
echo $json | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome!