I have an object that looks like this:
{
"Boiler Emissions": {
"Manhattan": 2.7,
"Bronx": 3.2
},
"Benzene Concentration": {
"Manhattan": 2.1,
"Bronx": 3.5
}
}
And I want to count the values of Manhattan
and Bronx
from both sub objects and get a result
that looks like this:
{
"Manhattan": 4,8,
"Bronx": 6,7
}
How do I count these nested values?