I have a JSON array, obviously. And I'm stuck in JS (no JQuery).
I have to find each distinct value for 'Service' and the count of each value.
So, if 100 shows up 3 times and 101 shows up 5 times, I need my result to be something like:
{ "100" : "3", "101" : "5"}
and I'd rather not use a regular loop if there's something more concise I can use like forEach()