Skip to main content

make pretty json

Project description

make pretty json.

Documentation: https://github.com/devstuff-io/pretty-json

Installation

pip install pretty-json

Environment Variables

PJSON_OUTPUT_STYLE

Default: monokai

The pygments formatter used to make the json pretty.

Usage

from pretty_json import format_json

# format_json(content, style=OUTPUT_STYLE)
print format_json({'key': 'value'})

See and sample the available styles

python -c "from pretty_json import sample;sample('manni')"

Authors

See contributors section on GitHub.

Project details


Release history Release notifications

This version
History Node

1.2.0

History Node

1.0.2

History Node

1.0.1

History Node

0.0.3

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pretty_json-1.2.0-py2-none-any.whl (4.0 kB) Copy SHA256 hash SHA256 Wheel py2 Jan 22, 2018
pretty-json-1.2.0.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None Jan 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page