I'm working with a JSON response that has the following structure:
items
|___ [0]
|____ media:group
|______media:thumbnail
|_______ [0]
|_____ url
I am having trouble accessing the value of the URL. I came across a suggestion to use bracket notation like ['media:group'], but I am not sure how to apply it in this case.
Here is what I attempted:
var url = items[i]['media:group']['media:thumbnail'][0].url;
However, my code editor is flagging an error indicating that a name is expected after the dots.
If anyone could provide some guidance on how to properly access the URL value, I would greatly appreciate it!
Thank you in advance for your help!