# Maniuplating a msg:string so I can make it a msg.payload?

**URL:** <https://discourse.nodered.org/t/maniuplating-a-msg-string-so-i-can-make-it-a-msg-payload/20934>\
**Category:** General\
**Created:** [27 January 2020 21:45 UTC](https://discourse.nodered.org/t/maniuplating-a-msg-string-so-i-can-make-it-a-msg-payload/20934 "2020-01-27T21:45:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![afelix](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/afelix/32/9743_2.png) [@afelix](https://discourse.nodered.org/u/afelix)\
**Post date:** [27 January 2020 21:51 UTC](https://discourse.nodered.org/t/maniuplating-a-msg-string-so-i-can-make-it-a-msg-payload/20934/2 "2020-01-27T21:51:18Z")

</div>

Hi @WalterWhite, see the other topic, it's caused by a bug in the node. I added a patch there. The issue however isn't so simply fixed throughout the flow, so you're better off patching the code yourself. What is happening is that rather than an object is outputted by the node, with a property "payload" set in that object containing the actual payload, the payload is outputting. This also causes other properties to be missing. As Node-RED requires messages to be objects, this means it can't be fixed through the "usual solutions" like utilising the change node to move the properties around. After all, there are no properties on a string.

For future reference, your code can't be imported. The forum software changes the empty `[]` brackets to a single square unicode character. See the explanation topic on how to export code and post it on the forums so that others can import it: [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/maniuplating-a-msg-string-so-i-can-make-it-a-msg-payload/20934)._
