I'd like to get the sum of object properties
Here is my Input
{
"Obj1": {
"1": 50,
"2": 45.5,
"3": 15,
"4": 10,
"5": 20
},
"Obj2": {
"1": 12.5,
"2": 0,
"3": 0,
"4": 12.5,
"5": 0
}
}
Want my output to be
Obj1 = 140.5
Obj2 = 25
Let me know if there is a way to get the output as mentioned above in javascript
Thanks in advance!!!