Based on this result from an API
"name": {
"common": "Italy",
"official": "Italian Republic",
"nativeName": {
"ita": {
"official": "Repubblica italiana",
"common": "Italia"
}
}
},
Let's suppose i always want the "common" name but, depending on the country the "key" will vary (now it's "ita" but it could be anything)
What is the cleanest way to always get the "common" value independently of the key name above? (so a dynamic function that always get the common value)