This is the first part of an ongoing series on mastering jq. jq is a valuable tool that every fast coder has in their tool chest. It contains depths of immense power. In part 1, we'll start off with the basics.
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’m curious if anyone else has considered using nushell for these things? Probably not for everything (or to replace one’s shell) but it definitely is simpler for basic tasks.
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.