Mark Steggles
asked on
How to loop through JSON array of objects
Hello,
I need to loop through this array.. how can I do that?
var buildCarousel = '/components/ajaxproxy/mos tactive.cf c?method=g etmostacti ve&returnf ormat=json ';
$.getJSON(buildCarousel, function(data) {
});
I need to loop through this array.. how can I do that?
var buildCarousel = '/components/ajaxproxy/mos
$.getJSON(buildCarousel, function(data) {
});
JSON array of objects.
[{"P":"\/photos\/family\/173000\/173420s.jpg","L":1121895},{"P":"\/photos\/family\/173000\/173422s.jpg","L":1121887},{"P":"\/photos\/family\/173000\/173005s.jpg","L":1121876}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks :)
I was using the for loop but was incorrectly using:
data[i].L
instead of:
data[i]["L"]
I was using the for loop but was incorrectly using:
data[i].L
instead of:
data[i]["L"]
You're welcome! Thanks for he points!
Open in new window