My JSON looks like this
{\"rows\":[ {\"key\":[\"zeit.de\"],\"value\":98}, {\"key\":[\"google.com\"],\"value\":49}, {\"key\":[\"spiegel.de\"],\"value\
you can use lodash
let result = [{'a': 3, 'b': 2}, {'a': 4, 'c': 1}, {'a': 4, 'c': 1}]; let m = _.reduce((_.uniq(_.flattenDeep(_.map(result, i => _.keys(i))))), function (s, v) { s[v] = _.sumBy(result, function (o) { return o[v]; }); return s }, {}); console.log(m); // { a: 11, b: 2, c: 2 }