Return an item from an array by position.
Section: Selectors and Paths
Get array element by index
bash
bash
echo '[10,20,30]' | jq '.[1]'Explanation
Array indexing is zero-based.
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