How to access property with # in a JSON file with JQuery?

1

Hello, I'm using Last.fm's api and I'm having trouble accessing the #text that's inside the image array.

Data Link - > JSON

I try:

console.log(values.track[index].image[index].#text);

But it does not work. How can I solve?

    
asked by anonymous 24.03.2017 / 17:00

1 answer

1

Just use values.track[index].image[index]['#text']

    
24.03.2017 / 17:04