I would like to insert data to a nested array. The structure of the JSON object is like this:
Data: {
MembershipName:
Countries: {
CountryName: "USA"
States:
{
State: "Alabama"
{
Members: {}
}
}
}
}
I tried using the push function below, it's being added when I debug it in the console but my View isn't updating.
self.Data()[0]["Countries"].push(
{
"CountryName": 'Success!'
}
);
I would like to add to the Countries array specifically for this specific index (I used index for 0). Is there an efficient way to achieve this?