TIL About json.tool



Somehow I never heard about json.tool until just now. It's built in to Python and provides a simple way to pretty-print JSON on the CLI:

echo '{"og": "hi there"}' | python -m json.tool
    "og": "hi there"

This is a nice alternative if you have Python installed and don't want to take the time to install jq.

Like what I have to say? Consider subscribing to my newsletter. I don't send very many updates.