An accurate, forgiving and insanely fast JSON reformatter
Go Shell
Permalink
Failed to load latest commit information.
jp Use POSIX-style flags Mar 9, 2014
pkg Packaging fussing Mar 9, 2014
.travis.yml
LICENSE.txt
README.md Document how to install via homebrew Mar 9, 2014
jp.go Update copyright year Mar 8, 2014
jp_test.go

README.md

jp

jp is a command line tool that reformats JSON to make it easier to read:

$ cat names.json
{"names":["Paul","Amy"]}
$ jp names.json
{
  "names": [
    "Paul",
    "Amy"
  ]
}

It is insanely fast, doesn't mess with the data, and handles invalid JSON (within reason). For more information see the project homepage.

Installing

Using Homebrew:

brew install https://gist.github.com/paulhammond/9441506/raw/jp.rb

If you don't use Homebrew you can download a precompiled binary and copy the jp file inside to somewhere in your path.

Or if you have a working go installation run go get github.com/paulhammond/jp.