Reverse the order of array items.
Section: Array Basics
Reverse array
bash
bash
echo '[1,2,3,4]' | jq 'reverse'Explanation
Useful for display order and last-first style reports.
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 Array Basics