# Message Payload build-up

**URL:** <https://discourse.nodered.org/t/message-payload-build-up/81002>\
**Category:** General\
**Tags:** debugging\
**Created:** [3 September 2023 12:05 UTC](https://discourse.nodered.org/t/message-payload-build-up/81002 "2023-09-03T12:05:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ieddev](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ieddev/32/82535_2.png) [@ieddev](https://discourse.nodered.org/u/ieddev)\
**Post date:** [3 September 2023 12:05 UTC](https://discourse.nodered.org/t/message-payload-build-up/81002/1 "2023-09-03T12:05:52Z")

</div>

Hi All,

I'm a bit puzzled.  
I've got a device which sends a MQTT message stream. Some values are sent as an object with a value f.i. "temp": 23.2, "hum": 66.6, "Speed status": 44,  
when debugging the single values i got stuck on the message "Speed status":44 I cannot view this in the debug window because of the space between Speed and status. How can i solve this?  
msg.payload.Speed status does not work because of the space.

Thnx

---

<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:** [3 September 2023 12:22 UTC](https://discourse.nodered.org/t/message-payload-build-up/81002/2 "2023-09-03T12:22:37Z")

</div>

Hi @ieddev, welcome to the forum.

As you say, `msg.payload.Speed status` will not work but the alternative format `msg.payload["Speed status"]` should be OK.

---

<div class="post-metadata">

**Author:** ![ieddev](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ieddev/32/82535_2.png) [@ieddev](https://discourse.nodered.org/u/ieddev)\
**Post date:** [3 September 2023 12:25 UTC](https://discourse.nodered.org/t/message-payload-build-up/81002/3 "2023-09-03T12:25:24Z")

</div>

I used msg.payload.["Speed status"] but now i see i was wrong. after losing the dot between payload and [" it works.

thnx

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [3 September 2023 15:54 UTC](https://discourse.nodered.org/t/message-payload-build-up/81002/5 "2023-09-03T15:54:28Z")

</div>

Node-red haa built in tools to help you like the copy path button.

There’s a great page in the docs ([Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

![BX00Cy7yHi](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/d/bd1f333a9e043b061b39917c328b0094d3e52d30.gif)

---

<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:** [17 September 2023 15:54 UTC](https://discourse.nodered.org/t/message-payload-build-up/81002/6 "2023-09-17T15:54:56Z")

</div>

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