Format JSON in the terminal

Some description

$CMD is any command that outputs JSON. Requires the jq command to be installed (on Ubuntu the install command is ‘sudo apt install jq’).

$CMD | jq .
Copied!

Use your own input

If you have values you'd like to use instead of the provided variables, type or paste your data into the variable inputs below. If Javascript is enabled, your text will automatically be added to the command and you can click to copy.