Check whether a value appears in a stream.
Section: Boolean Logic
Test membership with IN
bash
bash
echo '"b"' | jq 'IN("a", "b", "c")'Explanation
Useful for simple membership tests in jq expressions.
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