A command-line JSON pretty printer.
Pretty-print responses from web services:
curl https://api.github.com/users/octocat | jpp
Or pretty-print JSON from a file:
jpp file.json
More usage:
>> jpp -h
Usage: jpp [options] file
-i, --indent N Number of spaces to indent (default: 2)
-s, --sort Sort json alphabetically by key
-v, --version Show version
gem install jpp
To build and run locally:
git clone [email protected]:bentonporter/jpp.git
cd jpp
gem build jpp.gemspec && gem install jpp-1.1.0.gem