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

Asked

Viewed 75 times

1

Hello, I am using the Last.fm api and I am having difficulty accessing the #text found inside the image array.

Data link -> JSON

I try to:

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

But it doesn’t work. How can I fix?

1 answer

1

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.