Created
November 12, 2020 07:50
-
-
Save stekern/ab246c96e9f3b350c405c6cbad0ee3dc to your computer and use it in GitHub Desktop.
Shell one-liner for pretty-printing JSON
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 sys; import json; j = json.load(sys.stdin); json.dump(j, sys.stdout, indent=2, sort_keys=True, separators=(',', ': '))" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment