Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Console utility for pretty JSON output

Project Description

Simple python utility for using in shell scripts.


  • Print colorized JSON
  • Minimized and formatted output
  • Output elements by keys and indexes
  • Check JSON for correctness
  • Automatically disabling color sequences, when prints to pipeline, file or other non-tty output


  • test.json
  "arr": [
    "λάμβδα ラムダ lambda",
  "test": "test"
  • Colorized indented
printjson test.json
  • Minimized monochrome
printjson -om test.json


{"test":"test","arr":[123,"λάμβδα ラムダ lambda",["1","2"]]}
  • Print third entry of “arr” array, using “__” as delimiter
printjson -k 'arr__2' -d '__' test.json



Release History

This version
History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(5.9 kB) Copy SHA256 Hash SHA256
py2.py3 Wheel Sep 12, 2017
(4.9 kB) Copy SHA256 Hash SHA256
Source Sep 12, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting