I'm trying to save the JSON content in the answer.
For example, the QnA pair is like
- Question: where is the repair center.
- Answer: { "text" : "the repair center locates ...", "next": "would you like to know the phone number of the repair center" }
My chatbot will do some particular things when receiving this kind of answer from QnA service.
dynamic answser = JObject.parse(qnaResponse.answer);
if (answer.next == string.Empty){
//End conversation
}else{
await context.PostAsync(answer.next);
}
But I always got the gibberish string in response answer that I can't parse to JSON object and do rest of conversations.
{ "text":" the repair center locates ... " ,"next": "would you like to know the phone number of the repair center" }
Is it possible that stores JSON content as an answer? Or did I miss something?