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 could use the ? post-fix operator:
?
$ jq '.result | .property_history? | .[] | select(.event_name == "Sold") | .date' "08/30/2004"