For various reasons, I'm using a function node to change the payload. My incoming payload is a string. How do I incorporate that into the following function?
msg.payload =
{
data:
{
"message":" incoming_payload ",
"data":
{
"priority":"high",
"importance":"high",
}
}
}
return msg;