jq Conditional output December 27, 2022 by Tarik You can use the select function to get only required entries: jq 'select(.geo != null)' all.json