I'm struggling to comprehend the genre data format.
"data":
"genres": [
{
"id": 0,
"type": "string",
"name": "string",
"url": "string"
},
{
"id": 1,
"type": "string",
"name": "string",
"url": "string"
}
],
}
My goal is to show it as:
name1, name2, name3
and ideally, I'd like each name to link to its respective URL.
My attempt to access the data has been by
var genres = data.genres;
However, all I get in return is [object Object],[object Object]
. I assume that I need to extract the data from these objects, but I'm unsure how to do so.