jsoncolor

A JSON content terminal coloring tool


License
MIT
Install
pip install jsoncolor==0.2

Documentation

JSON Color

https://travis-ci.org/json-transformations/jsoncolor.png https://coveralls.io/repos/github/json-transformations/jsoncolor/badge.svg?branch=master

A JSON content terminal coloring tool

Installation

$ pip install jsoncolor
  • JSON Color is only compatible with Python 3.4+ at the moment.

Usage

$ 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.

Examples

$ cat results.json
{
  "string": "hello, github",
  "number": 200,
  "keyword": true
}

$ jsoncolor results.json
docs/_static/solarized.jpg

Create Color Styles

  • 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

Authors

JSON Color was written by Tim Phillips.

Credits

Brian Peterson, creator of JSON Transformations