[Solved] How do I merge all the outputs from for loop into single json using jq


You could pipe into jq -s .:

for .... ; do ... ; done | jq -s .

solved How do I merge all the outputs from for loop into single json using jq