Skip to content

Latest commit

 

History

History
37 lines (21 loc) · 579 Bytes

README.rst

File metadata and controls

37 lines (21 loc) · 579 Bytes

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