Last active
August 1, 2018 10:05
-
-
Save oliora/75d063f0cee7d20b45030946981ed062 to your computer and use it in GitHub Desktop.
one-liner to prettify json
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 pretty-json="python -c 'import json; import sys; json.dump(json.load(open(sys.argv[1], \"r\") if len(sys.argv) > 1 else sys.stdin), sys.stdout, indent=2)'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment