Emit each value in an object.
Section: Selectors and Paths
Iterate object values
bash
bash
echo '{"a":1,"b":2}' | jq '.[]'Explanation
On objects, `.[]` returns the values.
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