With this script you can do pipe JSON data to a command to get a colored human readable representation.

  1. Usage
  2. Source code
  3. Downloads
  4. Related stuff

Usage

Command: $ cat file.json | parsejson

Specify arguments to limit the returned data.
For example, when you have this JSON content:

{"one":{"two":{"three":"hello"}}}

Then you can do

cat file.json | parsejson one two

to get only

{ three: "hello" }

Source code

Downloads

parsejson.js

JAVASCRIPT (1 KB) ▼ Download