Skip to content

hamfist/sj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sj

https://travis-ci.org/hamfist/sj.png?branch=master https://badge.fury.io/py/sj.png

Enforcer of snakey JSON.

Installation

With pip:

pip install sj

With curl (separate install of ijson required):

curl -sLO https://raw.githubusercontent.com/hamfist/sj/master/sj.py
mv sj.py ~/bin/sj
chmod +x ~/bin/sj

Usage

With whatever stdin:

sj < some-file.json

With curl:

curl -s http://example.org/some/path | sj