Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Like python -mjson.tool but with moar colors (and less conf)

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

pjson

Like python -mjson.tool but with moar colors (and less conf)

Usage

⚡ echo '{"json":"obj"}' | pjson
{
  "json": "obj"
}

Looks Like This

Image for the haters:

image

Small retina display images are fucking huge.

Example With Curl

⚡ curl https://github.com/igorgue.json | pjson

Install

Install pygments:

pip install pygments

or, if you run as root:

sudo pip install pygments

And copy and paste this:

curl https://raw.github.com/igorgue/pjson/master/pjson > ~/bin/pjson && chmod +x ~/bin/pjson

If it doesn't work run this:

⚡ echo 'export PATH=$HOME/bin:$PATH' >> ~/.bashrc

For zsh bros, though, they might already know this:

⚡ echo 'export PATH=$HOME/bin:$PATH' >> ~/.zshrc

MFW I did This Project

image

Something went wrong with that request. Please try again.