Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

232
Vistas
How to access each key and value of json in JQuery or JavaScript

I have stored some data as a JSON. Data is coming dynamically. Even the key name could be changed.

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>": ""
  }
}

Now I want to access it's all keys and values. I'm trying JSON.parse() but it's giving error "Unexpected number in JSON at position 40". I tried this with $.getJSON(Json, function (key, value).That's also not working.

Can someone please help ? I just want to access each key, value and inside JSON ( {"Product_row_1":{"aa":"bb"}} ) as well.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda