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

185
Views
¿Cómo convierto (1,2,3) en un objeto JSON como [1,2,3] en javascript usando jsonurl?

Estoy tratando de usar https://github.com/jsonurl/jsonurl-js para lograr esto. Probé el siguiente código pero sigo obteniendo el resultado de 23.

Me gustaría almacenar todos los valores de prueba en testJSON y acceder a cada elemento individual por su índice.

 const test = (1, 2, 3, 23); const testJSON = JsonURL.parse(test); console.log(testJSON[2])
 <script src="https://cdn.jsdelivr.net/npm/@jsonurl/jsonurl@1.1.5" integrity="sha512-PgDMK2pu/5iHU+sUvfCWIKugVg2NLSN1jmQJyJKbQw1MZAMvrU7XX3fPv4FJXgGBxTCsDnjhMmlZK5pzgPndTQ==" crossorigin="anonymous"></script>

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!