cat myJson.json | jq '."foo" | to_entries[] | .key