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

133
Views
Conversión de datos JSON recibidos de una llamada ajax a una matriz

Obtengo datos en formato JSON de una llamada ajax. Quiero convertirlo en una matriz para usar en el script js.

 { "results":[ { "activity":"A12345" }, { "activity":"B12345" }]}

Matriz que quiero tener

 arr = ["A12345", "B12345"]

Intenté los siguientes pasos:

 var response = JSON.parse(data); var arr = response`enter code here`.results; var newArr = Object.entries(arr); alert("New" + Object.values(arr));

El resultado que estoy obteniendo es

 [object Object], [object Object]

¿Cómo puedo obtener los valores de estos objetos y almacenarlos en una matriz? ¡Por favor ayuda!

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!