jq Conditional output jq Conditional output json json

jq Conditional output


You can use the select function to get only required entries:

jq 'select(.geo != null)' all.json