0

This is my json structure http://www.jsoneditoronline.org/?id=fb2a15d2df238449142d98ad015961f9

I'm trying to loop trough results like this:

        success: function(data) {
            for(var i = 0; i < data.result.length; i++)
            {
                var product = data.result[i];
               alert(product);
            }
        }

Then in this 'result' object I've got another Object in Object and Array, how can I get this value?

enter image description here

1
  • alert(product.image.large.url); Commented Nov 26, 2015 at 12:09

1 Answer 1

1

results = data.tw_objects.tw_object.results.result; for (i=0; i<results.length; i++){ console.log(results[i].image.large.url) }

Sign up to request clarification or add additional context in comments.

1 Comment

this is considering that data has the json that you have shared in jsoneditoronline

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.