title: JavaScript, Papaparse, return array of objects
body: <p>I'm using to Papaparse to convert a csv file to json object.</p>
  <p>The API expects the data in this way:</p>
  <pre><code>&quot;data&quot;: [
          {
              &quot;id&quot;: 1,
              &quot;nombre&quot;: &quot;AGUASBLANCAS-AGB&quot;,
              &quot;descripcion&quot;: &quot;-&quot;,
              &quot;it_unidad_generadora&quot;: 0
          },
          {
              &quot;id&quot;: 425,
              &quot;nombre&quot;: &quot;AGUASBLANCAS-AGBQ&quot;,
              &quot;descripcion&quot;: &quot;-&quot;,
              &quot;it_unidad_generadora&quot;: 403
          }
      ]
  </code></pre>
  <p>But with Papaparse, the csv is converted to an array of arrays of each row like this:</p>
  <pre><code>&quot;data&quot;:  [
      0: [&quot;ID&quot;, &quot;NOMBRE&quot;, &quot;DESCRIPCIÓN&quot;, &quot;IT UNIDAD GENERADORA&quot;]
      1: [&quot;1&quot;, &quot;AGUASBLANCAS-AGB&quot;, &quot;-&quot;, &quot;0&quot;]
      2: [&quot;425&quot;, &quot;AGUASBLANCAS-AGBQ&quot;, &quot;-&quot;, &quot;403&quot;]
      ]
  </code></pre>
  <p>Is there a way to make an JSON array of object with Papaparse? and not an array of arrays of each rows</p>