title: Converting an array of arrays to list of JSON objects instead of JSON strings
body: <p>I'm trying to convert an array of arrays to a list of JSON objects.</p>
  
  <pre><code>var headers = ['first name','last name','age']
  
  var data = [ [ 'John', 'Gill', '21' ], [ 'Sai', 'Varun', '21' ] ]
  </code></pre>
  
  <p>When we use the above two lists to generate a list of JSON's, output will be like, </p>
  
  <pre><code>[ { 'First name': 'John', 'Last name': 'Gill', age: '21' },
    { 'First name': 'Sai', 'Last name': 'Varun', age: '21' } ]
  </code></pre>
  
  <p>But I'm in need of the output to be as, (double quoted strings and the JSON should not be a string but should be a JSON object) </p>
  
  <pre><code>[ {"First name":"John","Last name":"Gill","age":"21"},
    {"First name":"Sai","Last name":"Varun","age":"21"} ]
  </code></pre>
  
  <p>I tried using <code>JSON.stringify</code> but the result won't be a <code>JSON object</code> right, it'll be a <code>JSON string</code> which would prevent accessing each of the JSON's from the list as a whole.</p>
  
  <p>I have gone through many such answers but in vain. Can someone shed some light on this?!</p>