title: Nodejs - Correct way to iterate through nested JSON array
body: <p>Consider the following sample JSON array:</p>
  
  <pre><code>[{
      info: {
          refOne: 'refOne',
          refTwo: [{
              refOne: 'refOne',
              refTwo: 'refTwo'
          }]
      }
  }, {
      info: {
          refOne: 'refOne',
          refTwo: [{
              refOne: 'refOne',
              refTwo: 'refTwo'
          }]
      }
  }]
  </code></pre>
  
  <p>The above JSON is a simple representation of a database query response, What is the correct way within Nodejs to loop through each 'refTwo' array within the parent info array?</p>
  
  <p>sudo example:
   for each item in sample JSON
    for each refTwo item in current item
      do something</p>
  
  <p>I have a suspicion that the 'async' lib may be required here but some advice is much appreciated.</p>