79307746

Date: 2024-12-25 14:21:13
Score: 1
Natty:
Report link

You should JSON.parse() the talkjs value.

const respose = {
data: {
talkjs: "{\"message\":{\"id\":\"msg_303fpzqsELNIYT6udk6A52\",\"text\":\"hello\"}}"
}
};

const talkjs = JSON.parse(respose.data.talkjs);

console.log(talkjs.message.text)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Md. Sohel Rana