Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

tangsty/pjson

Open more actions menu
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Now pygments version 1.6 is NOT for pjson, so install command should be:

pip install Pygments==1.5

or, as root:

sudo pip install Pygments==1.5

And copy and paste this:

curl https://raw.github.com/tangsty/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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.