Emit each array element separately.
Section: Selectors and Paths
Iterate over array items
bash
bash
echo '["a","b","c"]' | jq '.[]'Explanation
`.[]` expands the array into multiple outputs.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Selectors and Paths