3 ms·
Here's one I use: jq for JSON parsing
by spinningarrow 10y ago
Here's one I use: jq for JSON parsing
- cben 10y agoYes. letsencrypt.sh is a nice case study, spending a lot of effort to parse json with essentially bash & grep. It works now but is full of assumptions ("this array of hashes will not contain [ anywhere"). There is nothing in POSIX that's well suited to manipulating json in the way that jq is.
- sigcode 10y agoMay I suggest an "Ask HN." Show your .json input and the desired output.