Skip to content

jq

Basic actions

Get all keys of a json doc:

cat $PATH_TO_THE_JSON_FILE | jq -r '[paths|map(.|tostring)|join(".")]'

Search for a specific value:

cat $PATH_TO_THE_JSON_FILE | jq '.[] | select(.name=="woernfl")'