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

214
Vistas
How to access an object with a bad key name and dynamically change it. Best practices

Describe:

After I sent my file to the server, the server sent me an answer.
Answer in JSON format.

My code:

function getResponse(){
    const response = localStorage.getItem('response');
    const data = JSON.parse(response);
    console.log('My data: ',data.data.data.results.adaware.objects.nhm_windows_3.0.8.2.exe.detect_name);
}

Server answer:

enter image description here

Question:

How do I access the file name in the code
Example: console.log('My data: ',data.data.data.results.);
( Also, the file name will constantly be changing )

I want to consult with people about the best practices for solving my problem.

Please do not dislike my question, and do not write that it has already happened.

I need help with mine in the use case.

Thank you and have a nice day!

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