nem.ec

Programming Information Security Recipes Personal Code Snippets

Ignore null values in jq output

Select a value from a JSON object and don't print the results that are null

jq -r '.firstName | select( . != null )' file.json