# How to change Json text

**URL:** <https://discourse.nodered.org/t/how-to-change-json-text/48273>\
**Category:** General\
**Created:** [11 July 2021 15:56 UTC](https://discourse.nodered.org/t/how-to-change-json-text/48273 "2021-07-11T15:56:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan1998](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@ryan1998](https://discourse.nodered.org/u/ryan1998)\
**Post date:** [11 July 2021 15:56 UTC](https://discourse.nodered.org/t/how-to-change-json-text/48273/1 "2021-07-11T15:56:22Z")

</div>

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)

 ![Node Red](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/8/589b8bbd7edc0ae1057ca098ab7f3bb0d4119598.png)

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

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [11 July 2021 17:20 UTC](https://discourse.nodered.org/t/how-to-change-json-text/48273/2 "2021-07-11T17:20:37Z")

</div>

"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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [9 September 2021 17:20 UTC](https://discourse.nodered.org/t/how-to-change-json-text/48273/3 "2021-09-09T17:20:50Z")

</div>

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