Leonel Matias Domingos
Leonel Matias Domingos

Reputation: 2040

Cannot get objects in JSON

enter image description here

I am using a web service that return a JSON object. I need help in getting access to nested objects.

JSON is validated and valid as you can see in picture.
I am using result.GetArticlesByTagsResult.Articles.Article[0].id, but I get undefined all the time. I've tried almost possible combinations.

Please, I'm new to JSON and I can't get what I'm doing wrong.

Upvotes: 0

Views: 63

Answers (1)

Marcos Casagrande
Marcos Casagrande

Reputation: 40394

Looking at the screenshot, the property is Id, not id

Try result.GetArticlesByTagsResult.Articles.Article[0].Id

Upvotes: 2

Related Questions