dictionary - How to iterate a map that contains another map with jQuery? -
i have json called data:
like can see, map contains map (listinfo).
i iterate with:
$.each(data, function (key, value) { alert(value); };
the alert print values (1, reunion, 15/06/2015, , on) when arrives listinfo prints, rightly, [object object]
how can solve problem? thanks
function loop(data) { $.each(data, function (key, value) { if(typeof value === "object") loop(value); else alert(value); }); } loop(data);
Comments
Post a Comment