How to change Json text

Hi all.

Very new to Node Red.

I have an MQTT node, with this output:

Preformatted text{"topic":"flow-meter/heartbeat7","payload":"+112","qos":0,"retain":false,"_msgid":"rf6226f9.aug622"}

I want to use a change node to remove the text ""flow-meter/" from the object.

There is no JSONata option available. (please see image)

I would be grateful if anyone could let me know how to do this.

"flow-meter/heartbeat7" appears to be in msg.topic, not in msg.payload and certainly not in global.payload.

Try Delete msg.topic in the change node.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.