View JSON Format Tools.md

python -mjson.tool

curl 'https://httpbin.org/json' -k -s | python -mjson.tool

To make it sorter, put an alias in your ~/.bash_profile, or ~/.config/fish/config.fish:

alias json="python -m json.tool"