Dechiper JSON message from boiler

Hi,

Not sure where to post this, so I’ll try here first.

My boiler has the ability to send a message when it encounters an error. Its a pellet boiler and needs cleaning and refuelling regularally.

I get a message such as the one below, which I currently receive as a trigger into a Node-red flow,

I want to extract the msg field, and send a different push message or action depending upon the error.

Any suggestions how I would start?

Web socket - Windhager Error: POST /DynIP/OnAlarm HTTP/1.1
Content-Type: application/json; charset=UTF-8
Content-Length: 87
Connection: Keep-Alive
Accept-Encoding: gzip, deflate
Accept-Language: en,*
User-Agent: Mozilla/5.0
Host: 192.168.1.68:5432

{
“MAC”: “00-23-43-00-xx-xx”,
“id”: “(60) BioWIN 2”,
“msg”: “FMP 09 OK”
}

Thanks
Paul

Where do you get that.
Is it an object or string?

Sorry, I never got around to this. I receive it as a string through a tcp in node.
I want to send a different notification depending on the content of the msg field.
Any suggestions?

[{"id":"0c746b5b81ec1276","type":"inject","z":"ebaa69a9.649708","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"Web socket - Windhager Error: POST /DynIP/OnAlarm HTTP/1.1 Content-Type: application/json; charset=UTF-8 Content-Length: 87 Connection: Keep-Alive Accept-Encoding: gzip, deflate Accept-Language: en,* User-Agent: Mozilla/5.0 Host: 192.168.1.68:5432  { \"MAC\": \"00-23-43-00-xx-xx\", \"id\": \"(60) BioWIN 2\", \"msg\": \"FMP 09 OK\" }","payloadType":"str","x":130,"y":620,"wires":[["bddcb6a97303df18","7b03101878b0eff1"]]},{"id":"bddcb6a97303df18","type":"function","z":"ebaa69a9.649708","name":"","func":"msg.payload = msg.payload.slice(msg.payload.indexOf(\"{\"));             \nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":280,"y":620,"wires":[["da4a69e70221efd1","213ad47f8e86ce25"]]},{"id":"cde6afc19e0c34f8","type":"debug","z":"ebaa69a9.649708","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":550,"y":540,"wires":[]},{"id":"da4a69e70221efd1","type":"json","z":"ebaa69a9.649708","name":"","property":"payload","action":"","pretty":false,"x":450,"y":620,"wires":[["cde6afc19e0c34f8"]]},{"id":"7b03101878b0eff1","type":"debug","z":"ebaa69a9.649708","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":230,"y":540,"wires":[]},{"id":"213ad47f8e86ce25","type":"debug","z":"ebaa69a9.649708","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":390,"y":540,"wires":[]}]

Awesome, thanks, will give that a go.