Skip to content

paulhammond/jp

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
jp
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.