Skip to content

paulhammond/jp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jp

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

$ cat names.json
{"names":["Alice","Bob"]}
$ jp names.json
{
  "names": [
    "Alice",
    "Bob"
  ]
}

It's 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 paulhammond/tap/jp

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.