I get Cannot iterate over null (null) from the below query because .property_history is not present in result object.
Cannot iterate over null (null)
.property_history
result
How do i che
You can use the select-expression in jq to do what you intend to achieve, something as,
jq
jq '.result | select(.property_history != null) | .property_history | map(select(.event_name == "Sold"))[0].date' "08/30/2004"