This tiny program reads any JSON code from STDIN and output a well-formatted and colorized version.
Tested only on OS X.
$ sudo curl -s https://raw.github.com/secreek/pretty-json/master/pj >/usr/local/bin/pj \
&& sudo chmod +x /usr/local/bin/pj$ curl <url> | pjor
$ cat <file.json> | pjAn original JSON:
$ curl -s http://www.seismi.org/api/eqs?limit=20Now with formatter and hilighter:
$ curl -s http://www.seismi.org/api/eqs?limit=20 | pjAn even complex sample:
$ curl -s https://api.github.com/events | pj
