GitHub - jakl/jsonpp: A command to pretty print json from a pipe or file

Skip to content

Navigation Menu

Sign in

Appearance settings

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
}