A Tiny Command Line Tool In Rust To Make Json Pretty
If you use cargo
,
$ git clone https://github.com/akht/prettyjson.git
$ cd prettyjson
$ cargo install --path .
$ prettyjson '{"foo":1,"bar":2}'
or
$ echo '{"foo":1,"bar":2}' | prettyjson
output
{
"bar": 2,
"foo": 1
}
That's all!