Hi
Newbie here
I have a msg.payload.body that contains one long string of text, please see below part of the payload.
"deviceModel":"MT10","alertId":"645140646630744781","alertType":"Sensor change detected","alertLevel":"informational","occurredAt":"2020-11-02T12:24:17.190976Z","alertData":{"alertConfigId":645140646621093008,"triggerData":[{"conditionId":14,"trigger":{"ts":1604318679.0,"type":"temperature","nodeId":48649295879865,"sensorValue":13.11111068725586}}],"startedAlerting":true}}"
I would like to extract values from "alertType" and "sensorValue" and "startedAlerting" and send the value to MQTT. I know how to throw it to MQTT, but I am stuck around how get values out of text only from payloads.
Anyone who can help me on my quest ?