All Projects → soheilpro → Catj

soheilpro / Catj

Licence: mit
Displays JSON files in a flat format.

Projects that are alternatives of or similar to Catj

Ponzu
Headless CMS with automatic JSON API. Featuring auto-HTTPS from Let's Encrypt, HTTP/2 Server Push, and flexible server framework written in Go.
Stars: ✭ 5,373 (+312.99%)
Mutual labels:  cli, json
Html Table Cli
Create interactive tables from JSON on the command-line
Stars: ✭ 23 (-98.23%)
Mutual labels:  cli, json
Structured Text Tools
A list of command line tools for manipulating structured text data
Stars: ✭ 6,180 (+375.02%)
Mutual labels:  cli, json
Jtc
JSON processing utility
Stars: ✭ 425 (-67.33%)
Mutual labels:  cli, json
Http Prompt
An interactive command-line HTTP and API testing client built on top of HTTPie featuring autocomplete, syntax highlighting, and more. https://twitter.com/httpie
Stars: ✭ 8,329 (+540.2%)
Mutual labels:  cli, json
Ramda Cli
🐏 A CLI tool for processing data with functional pipelines
Stars: ✭ 515 (-60.42%)
Mutual labels:  cli, json
Kt
Kafka command line tool that likes JSON
Stars: ✭ 799 (-38.59%)
Mutual labels:  cli, json
Visidata
A terminal spreadsheet multitool for discovering and arranging data
Stars: ✭ 4,606 (+254.04%)
Mutual labels:  cli, json
Saw
Fast, multi-purpose tool for AWS CloudWatch Logs
Stars: ✭ 1,071 (-17.68%)
Mutual labels:  cli, json
Fast Xml Parser
Validate XML, Parse XML to JS/JSON and vise versa, or parse XML to Nimn rapidly without C/C++ based libraries and no callback
Stars: ✭ 1,021 (-21.52%)
Mutual labels:  cli, json
Remarshal
Convert between CBOR, JSON, MessagePack, TOML, and YAML
Stars: ✭ 421 (-67.64%)
Mutual labels:  cli, json
Jaydiff
A JSON diff utility
Stars: ✭ 84 (-93.54%)
Mutual labels:  cli, json
Node Minify
Light Node.js module that compress javascript, css and html files
Stars: ✭ 404 (-68.95%)
Mutual labels:  cli, json
Trdsql
CLI tool that can execute SQL queries on CSV, LTSV, JSON and TBLN. Can output to various formats.
Stars: ✭ 593 (-54.42%)
Mutual labels:  cli, json
Resume Cli
CLI tool to easily setup a new resume 📑
Stars: ✭ 3,967 (+204.92%)
Mutual labels:  cli, json
Dasel
Query, update and convert data structures from the command line. Comparable to jq/yq but supports JSON, TOML, YAML, XML and CSV with zero runtime dependencies.
Stars: ✭ 759 (-41.66%)
Mutual labels:  cli, json
Jaggr
JSON Aggregation CLI
Stars: ✭ 365 (-71.94%)
Mutual labels:  cli, json
Jql
A JSON Query Language CLI tool
Stars: ✭ 368 (-71.71%)
Mutual labels:  cli, json
Jplot
iTerm2 expvar/JSON monitoring tool
Stars: ✭ 949 (-27.06%)
Mutual labels:  cli, json
Json2go
Create go type representation from json
Stars: ✭ 76 (-94.16%)
Mutual labels:  cli, json

catj

Displays JSON files in a flat format.

Input:

{
  "mappings": {
    "templates": [
      {
        "fields": {
          "mapping": {
            "norms": false,
            "type": "text",
            "fields": {
              "keyword": {
                "ignore_above": 256,
                "type": "keyword"
              }
            }
          }
        }
      }
    ]
  }
}

Output:

.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"

Why?

  • It makes it easier to understand the structure of JSON files.
  • The output is valid JavaScript which can be used directly in code.
  • It's very helpful when writing queries for tools like jq.

Install

npm install -g catj

Usage

catj [file]

If no file is specified, catj reads from the standard input.

Version History

  • 1.0
    • Initial release.

Author

Soheil Rashidi

Copyright and License

Copyright 2014 Soheil Rashidi

Licensed under the The MIT License (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

http://www.opensource.org/licenses/mit-license.php

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].