Grouping JSON by values
<p>Using the Lever job posting API, I'm getting JSON results sorted by location, and I'm trying to figure out how to group all those results by "team" within the results, like the <a href="https://www.shopify.com/careers#work-at-shopify" rel="noreferrer">Shopify</a> careers page.</p>

<p>Here is the <a href="http://codepen.io/anon/pen/jAxXAo" rel="noreferrer">codepen</a> and here is the <a href="https://api.lever.co/v0/postings/leverdemo?group=location&amp;mode=json" rel="noreferrer">JSON</a></p>

<p>I tried adding the following on line 38 of the codepen to try to grab the team values, but it's not outputting as expected (I'm getting one letter per line, which isn't helpful):</p>

<pre><code>for (var x in _data[i].postings[j].categories.team)
</code></pre>

<p>I'm sure it's probably something super simple, but I'm definitely not a javascript guy. Any help would be much appreciated!</p>