[jq] Join array elements into a string

Created on November 30, 2026

Use join and pass the separator to insert between elements. This example joins the strings with commas.

echo '["apple","banana","orange"]' | jq 'join(",")'

Output

"apple,banana,orange"
jq