"obj" : {
"a" : [
{ "name" : "value" },
{ "name" : "value" },
{ "name" : "value }
],
"b" : [
{ "name" : "value" },
{ "name" : "value" },
{ "name" : "value" }
]
};
I have my json structured similarly to this in that “a” and “b” are objects that contain arrays which also contain objects. I’m not very good with iteration/loops. I mainly would like to get the value of “name”. any help? THANKS IN ADVANCE!
You can use
forEach:Live demo: http://jsfiddle.net/4Mrkp/