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

692
Vistas
How to convert a flat array of objects into a nested JSON data in JavaScript/React using split() method?

I have a flat array of objects which is quite complex and there are no ids in the objects. I have to convert this flat array into nested JSON data by splitting the second element's value and each value will be children of the previous children.array of objects The third/last level which is 2301,2302 etc will have the asset value as its child. nested json hierarchyAny idea how to achieve this? I am fairly new to React. My ultimate goal is to create a sidebar like thistreeview to my React component. Please 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