Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 383 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 383 Bytes

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!