Skip to main content

display json in flat format

Project description

jcat

Python implementation of catj

Origin: https://git.osuv.de/m/jcat
Mirror: https://gitlab.com/markuman/jcat

Install

pip install jcat

example

~$ cat /tmp/test2.json
{
  "mappings": {
    "templates": [
      {
        "fields": {
          "mapping": {
            "norms": false,
            "type": "text",
            "fields": {
              "keyword": {
                "ignore_above": 256,
                "type": "keyword"
              }
            }
          }
        }
      }
    ]
  }
}
~$ jcat
USAGE:
        cat some.json | jcat
        jcat some.json

~$ jcat /tmp/test2.json
.mappings.templates[0].fields.mapping.norms = False
.mappings.templates[0].fields.mapping.type = "text"
.mappings.templates[0].fields.mapping.fields.keyword.ignore_above = 256
.mappings.templates[0].fields.mapping.fields.keyword.type = "keyword"

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

jcat-3.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file jcat-3.tar.gz.

File metadata

  • Download URL: jcat-3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.3

File hashes

Hashes for jcat-3.tar.gz
Algorithm Hash digest
SHA256 57564b0be48f4aa09fb48c2ee9792c8ee78a464631b1f1cc7ad15f481d8518bd
MD5 0b5a08a9c6e0f865a1d097213fdb3313
BLAKE2b-256 bae272fca27807525cb91d7c94eea5b936527e0a298dfb79908166011e634ab5

See more details on using hashes here.

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