I have problems to access nested data from my api call. The JSON response looks like this:

I try to access the attribute_name in attributes. And the language_name in languages.
I can display the location_name with the following code {{ userdetails.location.location_name }}
I have always problems with nested api data. Is there a guide how to access data from an api?
Thank you!
Update: My code looks like this
data() {
return {
userdetails: undefined,
};
},
methods: {
getUserData() {
DataService.getUserById()
.then((response) => {
this.userdetails = response.data;
console.log(response);
})
.catch((error) => {
console.log(
"Ein Fehler beim User ist aufgetreten: " + error.response
);
});
},
},
created() {
this.getUserData();
},
};
res.datainuserdetails? Can you show us the code?