jq: JSON to CSV ↗
The @csv and @tsv output formats in jq are underused. This covers the common case: an array of objects where you want the values out as rows, with headers derived from the keys.
The part worth bookmarking is the two-pass approach: one keys call to get the header row, then a second pass to extract values in the same order. Obvious in retrospect, but jq’s implicit ordering means you have to be deliberate about it.