Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!