Match either of two conditions.
Section: Boolean Logic
Logical OR
bash
bash
echo '[{"role":"admin"},{"role":"editor"}]' | jq '.[] | select(.role == "admin" or .role == "owner")'Explanation
Great for whitelists and matching multiple states.
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 Boolean Logic