Get colorized and indented JSON in the terminal
Project description
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:
![Example Yayson output](http://sebdah.github.com/yayson/img/screenshot.png)
Example usage
cat my.json | yayson.py
or
curl -s http://www.example.com/my.json | yayson.py
–help output
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
Release information
0.3.1 (2015-03-23)
[Library support (#6)](https://github.com/sebdah/yayson/issues/6). Thanks [@Macropin](https://github.com/macropin) for the PR.
0.3.0 (2013-05-23)
[Small fix for Python 3 (#5)](https://github.com/sebdah/yayson/issues/5). Thanks [@Fiedzia](https://github.com/Fiedzia) for the PR.
0.2.0 (2013-04-08)
[Set default indenting to 2 spaces (#2)](https://github.com/sebdah/yayson/issues/2)
[Add compact mode (#1)](https://github.com/sebdah/yayson/issues/1)
0.1.0 (2013-04-07)
Initial release
Releasing to PyPI
make release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file yayson-0.3.1.tar.gz
.
File metadata
- Download URL: yayson-0.3.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 33796c321db348974783ef48e76389f78974990a3106a75f6343d73ac15b8f45 |
|
MD5 | af3ebed6da689f2b78fc082efc5b6ff9 |
|
BLAKE2b-256 | fc994c9b1a0e165e85321491834fb0c523aceeb9ebaa1892ee6b10b0e2692987 |