Totally noob question from me. Different from other JSON nested questions, I want to access the value of the middle level. Consider that I have a JSON like:
"nodes":[
{"Level1":[
{"Level2A":[
{"Level3A":"Value",
"Level3B":"Value"
},
{"Level3A":"Value",
"Level3B":"Value"
}]
},
{"Level2B":[
{"Level3A":"Value",
"Level3B":"Value"
},
{"Level3A":"Value",
"Level3B":"Value"
}]
}]
}]
I want to get the value of Level2 out(to use as label). I can get lv3 value by calling for example,:
node.datum().Level1[0].Level2[0].Level3A
but if I tried
nodae.datum().Level1[].Level2
I get an object instead. The ideal output would be the array with [Level2A, Level2B,...]