how to calculate the sum of object key values in the given array statement
expected like sum of stationuserAmount = 40
"staions": [
{
"name": "Guwahati",
"stationuser": [
{
"name": "Suranjan Dey",
"stationuserAmount": "10"
}
]
},
{
"name": "Bhubaneshwar",
"stationuser": [
{
"name": "Soubhagya Behera",
"stationuserAmount": "10"
},
{
"name": "Om Prakash Sahoo",
"stationuserAmount": "20"
}
]
} ]