Query: shellyType=$(jq -r '.. | objects | select(.name == "'${shellyName}'") | .type' info_shelly.json) Append: jq --arg sN "${shellyName}" --arg sT "${shellyType}" --arg sU "${shellyUsage}" '.shellys += [{"name":$sN,"type":$sT,"usage":$sU}]' info_shelly.json > temp${shellyNr}.json Delete: Modify: jq '.shellys |= map( if .name == "shelly-14" then .usage="new" else . end)' info_shelly.json anzahl von index...: jq -r ' .actions' json/shelly-01.actions.json | jq -r 'with_entries(select(.key == "ext_temp_over_url" )) ' | jq -r '.[] | length'