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.
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.
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.