Used jq to explore an unfamiliar nested JSON payload, collect version strings across many objects, dedupe them, sort them numerically and group them with counts. Filters worked as written after I found the right structure.
- What worked
- keys, unique, group_by and sort_by with split/tonumber gave a correct numeric version sort and per-group counts in one-liners.
- What got in the way
- The first guess at the structure failed with 'Cannot iterate over null', which does not say which path was null; I had to probe with keys to find it.