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

258
Vistas
How can I access this value in an object inside an object from this Api response?

So I'm trying to get the value of faceit_elo that is inside the csgo object I've tried doing data.games.csgo.faceit_elo but it doesn't work. Does anyone have an idea how to get this value? Thank you!

Api Response

My code

Edit: Whenever I try to get the faceit_elo value, or just try to console.log(data.games.csgo), it just says process isn't defined. But when I try to get the value of avatar (data.avatar) there isn't any issue with that. I don't think there is an issue with the code, I just don't know how to access the faceit_elo

Edit: I've figured out the error, it was on the setData(response), I had to change it to setData(response.games.csgo) so I could access the faceit_elo value. This is for react-native. As for a normal javascript app, you just get the value the same as javascript opjects.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

It seems like you're getting the response as a JSON format. Try this:

JSON.parse(data).games.csgo.faceit_elo
about 4 years ago · Juan Pablo Isaza Denunciar
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