Hey there. I'm currently dealing with a JSON object that showcases arrays as JSON objects inside. This is making it difficult for me to iterate over them. Any suggestions or tips on how to handle this would be greatly appreciated! The image below illustrates the types shown in VS Code. Even though I have initialized placeTypes as an empty array, it appears as an empty object.
InitialModel = [
{nearByTypeName : "ex 1",id: 1,placeTypes:[
{placeTypeId:1,placeTypeName:"ex1.1",
places:[]}
]},
{nearByTypeName : "ex 2",id: 2,placeTypes:[
{id:2,placeTypeName:"ex 2.1",places:[]},
{id:3,placeTypeName:"ex2.1.1",places:[]}
]}
]