Displays JSON files in a flat format using python
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Markus Bergholz a5929ca333 update long description and add Makefile 4 months ago
bin version 2, set select stdin timeout to 30 seconds 4 months ago
jcat init 4 months ago
.gitignore Initial commit 4 months ago
LICENSE Initial commit 4 months ago
Makefile update long description and add Makefile 4 months ago
README.md update README 4 months ago
setup.py update long description and add Makefile 4 months ago

README.md

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"