Description
A command to pretty print json from a pipe or file
Install
Make sure nodejs is up to date
npm install -g jsonpp
Run
echo '[42, 42]' | jsonpp
[
42,
42
]
echo '{"a": 42}' > tmp.json
jsonpp tmp.json
{
"a": 42
}
GitHub - jakl/jsonpp: A command to pretty print json from a pipe or file
A command to pretty print json from a pipe or file
Make sure nodejs is up to date
npm install -g jsonpp
echo '[42, 42]' | jsonpp
[
42,
42
]
echo '{"a": 42}' > tmp.json
jsonpp tmp.json
{
"a": 42
}