Skip to main content

Pretty print .json data in your terminal

Project description

Johnson

CI codecov Documentation Status

Pretty print .json data in your terminal

Installing

Install and update using pip:

pip install -U johnson

Usage

  • Pretty print your json file
johnson -f example.json
{
  "glossary": {
    "title": "example glossary",
    "GlossDiv": {
      "title": "S",
      "GlossList": {
        "GlossEntry": {
          "ID": "SGML",
          "SortAs": "SGML",
          "GlossTerm": "Standard Generalized Markup Language",
          "Acronym": "SGML",
          "Abbrev": "ISO 8879:1986",
          "GlossDef": {
            "para": "A meta-markup language, used to create markup languages such as DocBook.",
            "GlossSeeAlso": [
              "GML",
              "XML"
            ]
          },
          "GlossSee": "markup"
        }
      }
    }
  }
}
  • See all commands available
johnson --help
 Usage: johnson [OPTIONS]

╭─ Options ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ *  --file                -f      PATH  path to json file [default: None] [required]                                               │
│    --install-completion                Install completion for the current shell.                                                  │
│    --show-completion                   Show completion for the current shell, to copy it or customize the installation.           │
│    --help                              Show this message and exit.                                                                │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Project details


Download files

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

Source Distribution

johnson-0.0.2.tar.gz (14.8 kB view hashes)

Uploaded Source

Built Distribution

johnson-0.0.2-py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 3

Supported by

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