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

203
Vistas
Tree structure in javascript with Json formatter
author: [
            {
                id: '1',
                code: 'ghj:aws:aws_vpc:create',
                description: 'Permission to create',
                status: 'ACTIVE',
                scope: 'PROVIDER'
            },
            {
                id: '2',
                code: 'ghj:aws:aws_vpc:update',
                description: 'Permission to create',
                status: 'ACTIVE',
                scope: 'PROVIDER'
            },
            {
                id: '3',
                code: 'ghj:aa:aa:update',
                description: 'Permission',
                status: 'ACTIVE',
                scope: 'PROVIDER'
            },
            {
                id: '4',
                code: 'dusk:resource-management:compute:ip:list',
                description: 'Permission',
                status: 'ACTIVE',
                scope: 'PROVIDER'
            },
            {
                id: '5',
                code: 'dusk:resource-management:storage:disk:delete',
                description: 'Permission',
                status: 'ACTIVE',
                scope: 'PROVIDER'
            },
            {
                id: '6',
                code: 'dusk:resource-management:storage:disk:Update',
                description: 'Permission',
                status: 'ACTIVE',
                scope: 'PROVIDER'
            }
]

i want to convert this tree structure like this in javascript

[
    {
      text: 'ghj',
      children: [
        {
          text: 'aws',
           children: [
           {
          text: 'aws_vpc',
          children: [
            {
              text: 'create'
            },
            {
              text: 'Update'
            }
          ]
        }
        ]
        
        },
          {
          text: 'aa',
           children: [
           {
          text: 'aa',
          children: [
          
            {
              text: 'Update'
            }
          ]
        }
        ]
        
        }
      ]
    }
]
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