Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

340
Vistas
Convert an excel xlsx file with nested headers into json

I am converting my excel file to json using the below library and it works fine when I have one header row and the remaining rows are data.

var excelToJson = require('convert-excel-to-json');

var result = excelToJson({
sourceFile: 'Auto.xlsx',
header: {
    rows: 2 //Used 2 to skip the first line of headers
},
columnToKey: {
   '*': '{{columnHeader}}'
}
}); 

But I have a file that has nested rows as headers similar to below and want to convert that into json.

enter image description here

Something like this, with multiple sheets enter image description here

Appreciate any help or pointers. Thanks!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda