I routinely use
curl -H from the bash shell to ‘talk’ to my devices and the API gave me nice pretty JSON that I could read. Lately, all the JSON appears to have been minified in the response which is probably to minimize electron costs…
Anyway is there a way to ask the API for pretty JSON?
If not, does anyone know a unix tool that will pretifyJSON on the command line? I do not want to have to create a file and then launch an app to read it (PITA)!
curl -H "$auth_token" $api/devices | pretifyJSON
Anyone have an
awk method for this?