My request sounds trivial but I could not find a way to do it. I have as input an array of JSON objects:
[ { \"foo\": 1, \"bar\": 2 }
Found: it's
map(tostring) | reduce .[] as $item (""; . + $item + "\n")
You also need to use --raw-output.
--raw-output