akht / prettyjson

Make Json Pretty

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

prettyjson

A Tiny Command Line Tool In Rust To Make Json Pretty

Install

If you use cargo,

$ git clone https://github.com/akht/prettyjson.git
$ cd prettyjson
$ cargo install --path .

Usage

$ prettyjson '{"foo":1,"bar":2}'

or

$ echo '{"foo":1,"bar":2}' | prettyjson

output

{
  "bar": 2,
  "foo": 1
}

That's all!

About

Make Json Pretty


Languages

Language:Rust 100.0%