I try to access this object. I want the value of property “city” from index [0] and save it in a variable. But I just found solutions for other constructions of an object.
var distance_to_each_city = [{
'distance': [123],
'city': 'Mannheim'
},
{
'distance': [654],
'city': 'Berlin'
},
{
'distance': [342],
'city': 'München'
},
{
'distance': [444],
'city': 'Hamburg'
},
{
'distance': [442],
'city': 'Köln'
}
]