Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

410
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!