How to sum values in arrays with key in other array : <p>I have an object with two arrays in JSON file :</p>

<pre><code>"Data": {
        "Server": ["a", "a", "a", "a", "b", "b", "b", "b", "c", "c", "c", "c"],
        "Count": ["12", "32", "7", "1", "67", "2", "3", "6", "5", "6", "5", "4"]
    }
</code></pre>

<p>what I want to achive is to add all values of array 'count' for relative values in 'server' array and create new array with structure like this:</p>

<pre><code> "Data": {
            "Server": ["a", "b", "c"],
            "Count": ["52", "78", "20"]
        }
</code></pre>

<p>Can anyone help with this? </p>
