Here is the structure of my response body, which is stored in a variable. When I use console.log(body), this is what I see:
[
{
"key1":"value1",
"key2":"value2",
"key3":"value3"
}
]
I am attempting to access "key3" with the following code:
console.log(body[0].key3)
However, when I run this command, I receive undefined as the output. I am unsure what is causing this issue. If I simply type
console.log(body[0])
I get a string [
.
Thank you for your assistance.