jq: How to match one of array and get sibling value
jq
approach:
jq -r '.x[] | select(.name == "Christmas").id' file
171
The function select(boolean_expression)
produces its input unchanged if boolean_expression
returns true
for that input, and produces no output otherwise.