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

209
Vistas
can not access id items in a nested objects

I'm getting the keys returned (0,1..) but can not access the value of _text This is my data, of type object the IdList is an object : IdList: {Id: Array(6)} I'm having the keys but can not access the value of _text

IdList: {Id: Array(6)}


Id: Array(6)
0: {_text: '34983115'}
1: {_text: '34983114'}
2: {_text: '34983113'}...
query 
{_declaration: {…}, _doctype: '', eSearchResult: {…}}
eSearchResult:
Count: {_text: '203374'}
IdList:
Id: Array(6)
0: {_text: '34983115'}
1: {_text: '34983114'}
2: {_text: '34983113'}
3: {_text: '34983112'}
4: {_text: '34983111'}
5: {_text: '34983110'}

length: 6
[[Prototype]]: Array(0)
[[Prototype]]: Object

I stored the data in an object state named query

const [query, setQuery] = useState({});

Then tried to access the id in the idlist: the output of this code is index , index._text is undefined

 {Object.keys(query).length &&
        Object.keys(query.eSearchResult.IdList.Id).map((keyName, index) => {
          return (
            <div className="card bg-c-blue order-card">
              <div className="card-block" keyy={index}>
                 {index}
                {index._text}
              </div>
            </div>
          );
        })}
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