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

320
Views
How read value from uri key json

i have this object

{
  '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'
}

How read value for key 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier'?

Solution:

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

0

Thanks @Andy

Solution:

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

0

to access key, value pairs in an object you can use 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}`);
}

read more information on Object.entries()

about 4 years ago · Juan Pablo Isaza Report

0

You can put the values of the object in an array and access the array:

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!