Given my JSON
countries: [
{country: "canada",
capital: "ottawa",
territories: [
yukon: {
capital: "yellowknife",
...
}
...
]
...
}
]
How can I get a reference to the yukon
object for instance?
I want to have something like
yukon = countries[0].territories[0]
and then make edits to yukon
that will reflect in the original JSON. For example,
yukon.size = 1123300;