deleted by creator
Both are bad. Make it readable.
And if you often resort to jq, better use python or at least something like nushell.
The first step to mastery is RTFM: https://jqlang.org/manual/
oh hey, a project that actually has a manual to read
I asked an LLM to write a
jq
scriptlet for me today. It wasn’t even complicated, it just beat working it out/trying to craft the write string to search Stackoverflow for.I tried and failed to get an LLM to write jq code to do a regex based matcher for finding if one json object was a subset of another.
Gave up and learned it enough to get it going. jq is nutso powerful.
I don’t understand how regex comes into it? Sounds tricky though!
Basically “does this JSON object contain at least these two properties, and is the value of one particular properties a string of digits followed by the letter ‘Z’”, for example.