I am new using Typescript, and I want to start working with JSON and be able to access its objects and attributes ... but it is getting very difficult to work on it, that is why I come to your knowledge of the code I want to be able to access the attribute of pavilions that are inside but I can not try using functions for of or functions for in and I can not achieve my mission (the attached next) ... my as I am started my skills in programming with this are not so good that we say .. many thanks for your help
for (let p in this.pabellon) {
let i = p
console.log(this.pabellon[p])
for (let pab of this.pabellon) {
pab.pabellones[i]
}
}
"sectorCenter": {
/// ......
},
"sectorPoly": [
///......
],
"pabellones": [
{ // Pabellon 1
"id": 1,
"properties": [
/// .......
],
"coordsPoly": [
///.....
],
"centerCoordsPab": {
///.....
},
"sitioCarga": [
///....
],
"silos": [
/// ....
]
},
undefined or nothing