I’m looking for clean and efficient way to get highest value count by sum up of all attributes in following json array.
[{ "id":1, "material":2, "noMaterial":3, "negative":1 }, { "id":2, "material":4, "noMaterial":3, "negative":3}, { "id":3, "material":0, "noMaterial":1, "negative":1}]
Expected Output:
{ noMaterial: 7 }