title: Node JS array formation
body: <p>I am pulling data from mysql and my node js api is responding the complete row as an array . but the front end developer needs the first column out of the main array . </p>
  
  <p>Current api response :</p>
  
  <pre><code>[{
    column1 :data,
    column2 :data,
    column3 :data
  }] 
  </code></pre>
  
  <p>Front end developer needs :</p>
  
  <pre><code>[{ column 1 : data },
   { column2 : data, column3 : data }]
  </code></pre>
  
  <p>I am sending the data back as res.send(rows) currently.</p>
  
  <p>Believe I need to use a for condition. </p>
  
  <p>Can someone help?</p>