How to get sum of json array

so i am fetching values from a database and then i am returing/using them in json/javascript as an array for example as shown here
the problem is that i want the sum of the array elements. i used this code:
““var obj1 = JSON.parse(data)…