The first step to mastery is RTFM: https://jqlang.org/manual/
post
replies:
[deleted]
permalink
fedilink
source
hideshow 1 child comment
If you're going to use jq to manipulate JSON I'd recommend a helper CLI tool like ijq. It allows you to experiment without needing too lines in your terminal history.
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.
replies:
permalink
fedilink
source
parent
hideshow 2 child comments
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.
replies:
permalink
fedilink
source
parent
hideshow 1 child comment
I don't understand how regex comes into it? Sounds tricky though!
top 10 comments