Seeking guidance as a newbie on how to extract a specific object from an array.
Here is an example of the Array I am dealing with:
data {
"orderid": 5,
"orderdate": "testurl.com",
"username": "chris",
"email": "",
"userinfo": [
{
"status": "processing",
"duedate": "" ,
}
]
},
To access the data above, I would typically use this syntax:
return this.data.orderid
But how can I delve deeper and retrieve the status in userinfo?
return this.data.orderid.userinfo.status
The above code does not seem to work for me. Any suggestions or alternative methods that could help me solve this?