This is the JSON:
tree.json:
[
{
"objectId": "o3mH2lo8wO",
"name": "Coeptis",
"thumbnailUrl": "https://storage.googleapis.com/bundle_asia_dra/portal/buildingImg/Coeptis.png",
"createdAt": "2015-06-29T08:16:51.897Z",
"version": 0,
"pano": []
},
{
"objectId": "ueCCX8v4Qz",
"name": "Sunflower",
"thumbnailUrl": "https://storage.googleapis.com/bundle_asia_dra/portal/buildingButton/caisa.png",
"createdAt": "2015-08-25T12:11:02.235Z",
"version": 0,
"space": "56-139",
"pano": [
{
"objectId": "TIdm6sG1r0",
"name": "D0",
"panoData": [
I know how to get the first objects (e.g. "objectId": "ueCCX8v4Qz"
):
_.where(tree, {"objectId": "ueCCX8v4Qz"})
But I don't know how to get, for instance, "objectId": "TIdm6sG1r0"
(the objects inside the array inside pano:
).
How to accomplish that?