Created
May 28, 2019 01:21
-
-
Save jlevy/55c47989faf5f6b24a78b140edf390db to your computer and use it in GitHub Desktop.
Command-line JSON pretty-printer
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 | |
# Convenience script to pretty-print and browse colored JSON without remembering flags. | |
# Read from files or stdin. | |
jq -C . "$@" | less -R -m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment