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-4.tar.gz (2.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: jcat-4.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for jcat-4.tar.gz
Algorithm Hash digest
SHA256 d8d4c8f3f3b2d3a0c6508a00c47ad2164a1b7d116e7b4e770681fff91006aad6
MD5 805859ed10b4037b79b185b53d76d2f7
BLAKE2b-256 2a02cf2628233d044b4c4b32253069c317437024953c399121009fd9401ce993

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