A command line JSON pretty printer.
Pretty print web service responses like so:
curl -s -L https://t.co/tYTq5Pu | jsonpp
and make beautiful the files running around on your disk:
jsonpp data/long_malformed.json
Grabbing the binary is the easiest way to install jsonpp
. It's a simple file.
To begin, download the zip file that matches your machine:
Then, decompress that zip file, and copy the jsonpp
file inside to somewhere
in your $PATH
.
To see it in action, pipe some example JSON into it:
curl -s -L https://t.co/tYTq5Pu | jsonpp
A source install requires a working install of Go. Once Go is installed run:
goinstall github.com/jmhodges/jsonpp
or run make install
yourself.