Below is the JSON response:
{
"status": "passedd",
"reasons": {
"welcome": {
12: "helo",
14: "hi",
15: "fine",
14: "Not interested"
},
"speakin": {
16: "Phone",
19: "Msg",
21: "Whatssup"
},
"Byee": {
17: "Gud bye",
25: "Need help",
26: "byeee",
27: "Help"
}
}
}
I need to access the value of the object eg:Helo. Since I'm a newbie to react native I'm not clear in accessing the object values.
Using Objects.keys(reasons) I'm able to get welcome, speakin,Byee. How to access the keys and values under that? Please help me.