Search if a key contains "myStr" v1.4: jq -r --arg str "myStr" '.objects[]|select(.name|contains($str))|"\(.name) \(.type)"' v1.6: jq -r --arg str "myStr" '.objects[]|select(.name|test($str))|"\(.name) \(.type)"'