I have an array of string in json format. I'd like to check whether it includes a specific string value.
I have tried to use contains:
echo '["aa", "bb", "cc"]' |jq '. | contains(["aa"])'
> true
it works but it also return true for a partial match:
echo '["aa", "bb", "cc"]' |jq '. | contains(["a"])'
> true
how can I find the exact match?