I have this jq filter:
some_command | jq -r '.elements[] | select(.state=="LIVE" and .group == "some_text" and .someFlag == false) | .name'
someFlag is an optional field. Hence, when it is absent, the expression doesn't show any result. I want to check for:
- if someFlag is present, pass the check only if it has the
falsevalue - if someFlag is not present, treat it as
false
How can I do that?