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

414
Vistas
How to export nested array of objects into xlsx format in React.js

I don't figure out how to export nested data to xlsx format. I'm currently using react-export-data package and this package don't accept objects. Structure of data looks like this:

const test =  {
"id":25,
"office":"Офис Исфана",
"full_name":"Адамбаев Суйунбек Аматжанович",
"model_car":"Tesla",
"number_car":"АИ599",
"registry_driver":[
    {
        "id":13,
        "driver":"Адамбаев Суйунбек Аматжанович",
        "date":"2021-09-13",
        "name_weekday":"Mon",
        "start_fuel":"0.00",
        "flooded_fuel":0,
        "milage":420647,
        "costs_fuel":"8412.94",
        "end_fuel":"-8412.94",
        "num_card":{
        },
        "num_check":{
        }
    },
    {
        "id":22,
        "driver":"Адамбаев Суйунбек Аматжанович",
        "date":"2021-09-14",
        "name_weekday":"Tue",
        "start_fuel":"-8412.94",
        "flooded_fuel":0,
        "milage":0,
        "costs_fuel":"0.00",
        "end_fuel":"-8412.94",
        "num_card":{
        },
        "num_check":{
        }
    }
]

}

I need to get output like this: enter image description here

I really hope for your help...

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