e.g. match when state is “austin”, “houston”, or “dallas”.
head state_data.json | jq -n '["houston", "austin", "dallas"] as $whitelist
| ($whitelist | map( {(.): true} ) | add) as $dictionary
| inputs
| select($dictionary[.state])'
e.g. match when state is “austin”, “houston”, or “dallas”.
head state_data.json | jq -n '["houston", "austin", "dallas"] as $whitelist
| ($whitelist | map( {(.): true} ) | add) as $dictionary
| inputs
| select($dictionary[.state])'