Also want to point out that the jq cli, brew install jq on mac will also process json by typing "cat yourfile.json | jq .” or interactively with "jq . <<< '{"key": "value”}’”
Just wanted to point this out, because often I don’t want to put my private json data into some rando website.
Python no longer comes preinstalled with macOS. Though running any command against /usr/bin/python3 will make macOS prompt you about installing the Xcode Developer Tools (takes two clicks), which does get you Python.
Anyway, jq now ships with macOS Sequoia.
For older versions of macOS, using JavaScript for Automation is preinstalled and gets the job done with a bit more verbosity:
Obviously this is just `JSON.stringify(e, null, 2)` as a Service, but I think this is a nice app to kick the tires on a frontend stack without actually needed to build anything. Halfway between 'Hello World' and 'TODO app'.
While this tool doesn't seem to be anything special, the trend(?) of tools that run entirely in the browser, without any data sent to the server, is a very encouraging one.
There is a level of trust involved as unless you pull down the code, audit it and only ever run it locally, you really have no way of knowing that on any given page load the code hasn't changed.
While I also appreciate tools that don't send data, I don't like the normalization of teaching people to paste (potentially) private data into a browser while blindly trusting that it's not being offloaded to some server somewhere.
Just wanted to point this out, because often I don’t want to put my private json data into some rando website.
You no longer need to install it with Homebrew. jq ships with macOS Sequoia in /usr/bin.
Anyway, jq now ships with macOS Sequoia.
For older versions of macOS, using JavaScript for Automation is preinstalled and gets the job done with a bit more verbosity:
While I also appreciate tools that don't send data, I don't like the normalization of teaching people to paste (potentially) private data into a browser while blindly trusting that it's not being offloaded to some server somewhere.