What is the internal, inverse operation of .[] in jq?
15:43 02 Feb 2026
echo '[ {"a":1}, {"b":2}, {"c":3} ]' | jq  '.[] | revert_op '

What can we replace revert_op with to get this?

[ {"a":1}, {"b":2}, {"c":3} ]

jq -s '.' does the job, but this is a CLI option, and I want a solution in the flow.

echo '[ {"a":1}, {"b":2}, {"c":3} ]' | jq '.[]' | jq -s '.'

I don't want this solution either:

echo '[ {"a":1}, {"b":2}, {"c":3} ]' | jq '[.[]]'

I want the real opposite operation to ' |.[] '

jq