An accurate, forgiving and insanely fast JSON reformatter
Switch branches/tags
Nothing to show
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
jp Use POSIX-style flags Mar 9, 2014
pkg Packaging fussing Mar 9, 2014
.travis.yml Get travis to build with go 1.2 and tip Mar 9, 2014
LICENSE.txt Update copyright year Mar 8, 2014
README.md Document how to install via homebrew Mar 9, 2014
jp.go Update copyright year Mar 8, 2014
jp_test.go Update copyright year Mar 8, 2014

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.