I have an array like below.
[{"rowid":1,"amount":5000,"checked":true},
{"rowid":2,"amount":1500,"checked":true},
{"rowid":3,"amount":500,"checked":true}]
where I have 3 rows and in each row I have a field called amount. I want to add the value of all amount fields so that I will get result 7000.