{
"msg_id" : "5979ee7c",
"_text" : "Hello Brother!",
"entities" : {
"intent" : [ {
"confidence" : 0.988721779612267,
"value" : "greeting"
} ]
}
How can I get the data of "value" and assign it to my another variable ? Yeah it is a simple thing but I am new to JS.
body = JSON.parse(response.body)
intent = (body["entities"]["intent"]).value
When I tried to do this, it gives me the "undefined" not the real value of "value" .
So how can I initialise the intent variable over here ?
Thanks!