jp - pretty-print a JSON file with syntax-coloring and indentation
$ jp [options...] [path...]
jp
pretty-prints a JSON file with syntax-coloring and indentation.
If no path argument is provided stdin is used.
--help
: Display this message-i
, --indent-size
: Size of indentations in spacespath
: file to pretty-print# Pretty-print stdin
$ cat /proc/all | jp
# Pretty-print a file
$ jp json-data.json
# Pretty-print a file with two spaces per indent
$ jp -i 2 json-data.json