jonmorehouse / jsonpp

Yet another json formatter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSON Pretty Print

Yet another json pretty printer

Installation

$ git clone git@github.com:jonmorehouse/rust-jsonpp
$ cd rust-jsonpp
$ cargo build

Basic Usage

$ echo '{"key": "value"}' | ./target/debug/jsonpp
{
  "key": "value"
}

Multiple Lines

Some archive files embed many different json objects as single line, json strings. To prettify such json files, simple call jsonpp with the -l argument.

$ echo '{"key": "value"}\n{"key":"value"}' | ./target/debug/jsonpp -l
{
  "key": "value"
}
{
  "key": "value"
}

About

Yet another json formatter


Languages

Language:Rust 100.0%