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

308
Views
Cómo leer el valor de uri key json

tengo este objeto

 { 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier': '918312asdasc812', 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name': 'Login1', 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role': 'User' }

¿Cómo se lee el valor de la clave 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier'?

Solución:

 obj['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier']
about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Gracias @Andy

Solución:

 obj['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier']
about 4 years ago · Juan Pablo Isaza Report

0

para acceder a pares de clave y valor en un objeto, puede usar Object.entries(yourObjName) .

 foo = { 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier': '918312asdasc812', 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name': 'Login1', 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role': 'User' } for (const [key, value] of Object.entries(foo)) { console.log(`${key}: ${value}`); }

lea más información sobre Object.entries()

about 4 years ago · Juan Pablo Isaza Report

0

Puede poner los valores del objeto en una matriz y acceder a la matriz:

 const object1 = { 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier': '918312asdasc812', 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name': 'Login1', 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role': 'User' }; const arr = (Object.values(object1)); console.log(arr[0]);
about 4 years ago · Juan Pablo Isaza Report
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!