Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

695
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda