Yay, beautiful JSON on the command line!
yayson
will take input on stdin
and print pretty JSON with color in your terminal. It will come out something like this:
cat my.json | yayson.py
or
curl -s http://www.example.com/my.json | yayson.py
usage: yayson.py [-h] [-i INDENT] [-c] [-s] [--version]
Yayson produces beautiful JSON
optional arguments:
-h, --help show this help message and exit
-i INDENT, --indent INDENT
Number of spaces to indent with (default: 2)
-c, --compact Print JSON in compact mode, i.e. without spaces
between keys and values
-s, --sort Turn on key sorting
--version Print version information
0.3.1 (2015-03-23)
- Library support (#6). Thanks @Macropin for the PR.
0.3.0 (2013-05-23)
- Small fix for Python 3 (#5). Thanks @Fiedzia for the PR.
0.2.0 (2013-04-08)
0.1.0 (2013-04-07)
- Initial release
make release
This project is maintained by Sebastian Dahlgren (GitHub | Twitter | LinkedIn)