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

121
Views
Can't access property from JavaScript object

I need to access properties from this object, but I am getting undefined.

I tried use JSON stringify and parse but without success.

console.log('ress', response.data);
console.log('ress data', response.data.url);
console.log('ress key', response.data.key);

output:

ress {"url":"my url","key":"my key"}
ress data undefined
ress key undefined
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Probably your response.data object is a string, in this case you have to parse it into a JSON object to be enable to access the properties.

object = JSON.parse(response.data);
console.log('data url', object.url);
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!