title: JSON extracted data returned too many times
body: <p>I have a JSON with the following shape for ~50 <code>_source</code> entries: </p>
  
  
  
  <pre class="lang-js prettyprint-override"><code>{
      "hits": [
          {
              "_source": {
                  "name": "henry",
                  "jobs": ["judge", "lawyer"]
              }
          },
          {
              "_source": {
                  "name": "henry",
                  "jobs": ["dev", "waitress"]
              }
          }
          // ...
      ]
  }
  </code></pre>
  
  <p>I want to extract only the first item in <code>jobs</code> node, <em>i.e.</em> <code>judge, dev, ...</code> and tried the following: </p>
  
  <pre class="lang-js prettyprint-override"><code>for (i in json.hits) 
  { 
      const jobExtract = json.hits[i]._source;        
  
      for (i=0; i&lt;jobExtract.jobs.length; i++)
      { 
          const firstItem = jobExtract.jobs[0];
          console.log(firstItem);
      }
  }
  </code></pre>
  
  <p>I can extract the first item but it appears multiple times:</p>
  
  <pre class="lang-js prettyprint-override"><code>judge
  judge
  judge
  dev
  dev
  </code></pre>
  
  <p>Where have I gone wrong?</p>