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

221
Visualizações
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 à 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