Return true if every element satisfies a predicate.
Section: Array Basics
Check whether all items match
bash
bash
echo '[{"active":true},{"active":true}]' | jq 'all(.[]; .active)'Explanation
`all()` verifies complete compliance across the array.
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