jsonpp
is a simple-to-install and fast-to-run command line JSON pretty printer. You'll love it.
With classic hits like:
curl -s -L http://t.co/tYTq5Pu | jsonpp
And new favorites such as:
jsonpp testdata/multiple/multiple.json
and formatting an already pretty-printed JSON input is just a -s
away:
jsonpp -s testdata/one/singular.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
.
If you're on OS X, and have homebrew installed, you can simply run:
brew install jsonpp
The source install requires a working install of Go. Once Go is installed, run:
go get github.com/jmhodges/jsonpp
To see jsonpp
in action, pipe some example JSON into it:
curl -s -L http://t.co/tYTq5Pu | jsonpp
Nada. Unless you build from source, and then it depends on go.
MIT
As mentioned above, you can easily download the binary, but if you want the code, you can check out the repo on GitHub.
Be advised. Ted Nyman is a radical dude.