I just stumbled across a wonderful tool: command line JSON validation/pretty-print.
https://docs.python.org/3/library/json.html#module-json.tool
I often work with JSON with our routers. I use curl to read from our API endpoints which return JSON. Getting back large blobs of JSON is useful but hard to read all jumbled together.
% curl –basic –user admin:${CP_PASSWORD} http://172.16.22.1/api/status/wlan/radio/0

Now instead I can pipe to python3 -m json.tool and the JSON will be cleanly formatted and humanly readable.
