An accurate, forgiving and insanely fast JSON reformatter
Pull request Compare This branch is 11 commits behind paulhammond:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jp
.travis.yml
LICENSE.txt
README.md
jp.go
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

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.