I am not able to find a solution for this transformation, i have a input Json, model below, and i need to sum the values of “totalValue” tag.
Input Json
{
“id”: “ec4f9fbd-f595-4d03-a514-2133aabdd138”,
“listOfOrderItem”: [
{
“erpReferenceKey”: null,
“totalValue”: 60.78,
“discontValue”: 0,
“position”: 5
},
{
“erpReferenceKey”: null,
“totalValue”: 28.66,
“discontValue”: 0,
“position”: 4
},
{
“erpReferenceKey”: null,
“totalValue”: 48.84,
“discontValue”: 0,
“position”: 3
}
]
}
Expected output
{
“Sum”: 89,44
}