R
R
Richard Smith2020-06-09 14:32:41
JavaScript
Richard Smith, 2020-06-09 14:32:41

Why does it output undefined when printing the value of an object?

I get json and want to get the firstName value of the first card from it. I write response['response'].records and get undefined. What is the problem?5edf733d30a30679345254.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hzzzzl, 2020-06-09
@Klimsava

response['response'].records
looks like it's a string
try to seeJSON.parse(response.response).records

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question