Below is the array that is generated from my json response
[
{
"id": "name1",
"c1": "10",
"c2": "20",
"c3": "30",
"c4": "40"
},
{
"id": "name2",
"c1": "20",
"c2": "40",
"c3": "25",
"c4": "38"
}
]
I need to calculate the sum of the values of the fields except the first field, as the first that I get is a field name
Result array:
[
"c1": 30,
"c2": 60,
"c3": 55,
"c4": 78
]