{"response": {"one": {"count": "2","total": "13700","rest": "31500","down": "2500"},"two": {"count": "1","total": "25000","rest": "50000","down": ""},"three": {"count": "2","total": "50000","rest": "5000","down": ""}}}
const str = `{"response": {"one": {"count": "2","total": "13700","rest": "31500","down": "2500"},"two": {"count": "1","total": "25000","rest": "50000","down": ""},"three": {"count": "2","total": "50000","rest": "5000","down": ""}}}`
const obj = JSON.parse(str);
let sum = 0;
for (let key in obj.response) {
sum += +obj.response[key].count;
}
console.log(sum); //5