A JSON content terminal coloring tool
$ pip install jsoncolor
- JSON Color is only compatible with Python 3.4+ at the moment.
$ jsoncolor --help
Usage: jsoncolor [OPTIONS] [JSONFILE]
JSON text coloring.
Options:
-c, --create Create a new color style
-d, --default TEXT Set default color style
-n, --nocolor Disable syntax highlighting
-s, --styles Print all preset styles
--version Show the version and exit.
--help Show this message and exit.
$ cat results.json
{
"string": "hello, github",
"number": 200,
"keyword": true
}
$ jsoncolor results.json
- jsoncolor defaults to solarized, but you can create your own style.
- Modify the jsoncolor configuration file with hexadecimal color codes.
- Configuration file is created with jsonconfig
- Configuration files locations
JSON Color was written by Tim Phillips.
Brian Peterson, creator of JSON Transformations