Yet another json pretty printer
$ git clone git@github.com:jonmorehouse/rust-jsonpp
$ cd rust-jsonpp
$ cargo build
$ echo '{"key": "value"}' | ./target/debug/jsonpp
{
"key": "value"
}
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"
}