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

234
Views
Cómo acceder a cada clave y valor de json en JQuery o JavaScript

He almacenado algunos datos como JSON. Los datos llegan de forma dinámica. Incluso el nombre de la clave podría cambiarse.

 var str = { "Product_row_1": { "Number_of_Students": { 190: 191 }, "Price": { 240.0000: 230.0000 }, "Total_Old": { "45.00000": "43.00000" } }, "Cost": { 45.00: 43.00 }, "Cost_after": { 45.00: 43.00 }, "Total": { 45.00: 43.00 }, "Cover_Letter": { "<div>Hello<\/div>": "" }, "Additional_Information": { "<div>Hell No<\/div>": "" } }

Ahora quiero acceder a todas sus claves y valores. Estoy intentando JSON. parse () pero está dando el error "Número inesperado en JSON en la posición 40". Intenté esto con $.getJSON(Json, función (clave, valor). Eso tampoco funciona.

Puede ayudarme alguien, por favor ? Solo quiero acceder a cada clave, valor y dentro de JSON ( {"Product_row_1":{"aa":"bb"}} ) también.

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!