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

222
Vistas
Is there a way to convert a string to an array? React js

Hello to all the community ... I am new to using sql server and as I understand it I cannot save array data in the database with which I am using the varchar data type and I have a problem ... The API returns the following in string type:

`[{title: frontpartID, state: false},{title: backpartID, state: true}]`

And I'm needing to convert it to object type ... something like that:

[
 { title: "frontpartID", state: false },
 { title: "backpartID", state: true },
]

so we can go through it with the .filter function:

object.filter((x) => x.state === true)

I would really appreciate any help as I am new to this field ... Thank you very much in advance!

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