>_ IzzyLab

Topic breakdown

When a jq filter expands an array, the output is not an array but a stream of individual values — they need to be collected back into a structure. By wrapping the expression in square brackets, the stream is "collapsed" back into a JSON array; the same result is achieved by applying map to the source array. The key point — no -r flag, because what's needed is exactly valid JSON, not bare strings.

What's checked

  1. array of names is correct

What it looks like