Skip to main content

Extended "python -mjson.tool"

Project description

This module is extended “python -mjson.tool”.

Install

$ pip install mjson

How to use

Same the original

$ echo '{"a":1,"b":2}' | mjson
{
    "a": 1,
    "b": 2
}

Change indents

$ echo '{"a":1,"b":2}' | mjson -i 2
{
  "a": 1,
  "b": 2
}

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page