I received a JSON response which includes carts values with different amounts.
"carts": {
"value": [
{
"Amt": 40
},
{
"Amt": 20.25
},
{
"Amt": 10.30
}
]
}
My goal is to calculate the sum of all Amt values, which should be 70.55. I am learning TypeScript and would appreciate any help on how to achieve this task.