Skip to main content

Post Processing

JQ

jq is a command-line tool designed to parse JSON. If you gather the JSON data with the CLI (-json-file flag), you can filter for whether fields are present

The following query would only match records where phone_number field is present. The entire record will be printed.

cat blackhillsinfosec.json| jq 'select(.phone_number != null)’