# About msg.payload.xxxx.x?

**URL:** <https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823>\
**Category:** General\
**Created:** [30 June 2021 06:26 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823 "2021-06-30T06:26:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [30 June 2021 06:26 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/1 "2021-06-30T06:26:33Z")

</div>

Dear All :

Look at Pic red circle ?  
Where is the msg.payload.xxxx.x?

Thank u.

 ![螢幕擷取畫面 2021-06-30 142326](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/2/9265c3ffe647622009cd5e9631c96643ed1858e6.jpeg)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [30 June 2021 06:55 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/2 "2021-06-30T06:55:41Z")

</div>

What pic?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 June 2021 07:14 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/3 "2021-06-30T07:14:50Z")

</div>

Hi @jlian168

I am not sure what you are asking here. Can you explain a bit more about what you want to know?

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [30 June 2021 07:24 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/4 "2021-06-30T07:24:59Z")

</div>

Dear knolleary :

Most I see msg. is msg.payload,  
But in here is msg.payload.acceleration.x,  
So I dont where it hv been define?  
So my most problem is the object msg has how many msg.xxxx.xxxx.x name?

My english is poor, So hope u can understand my question...  
Thank u very much.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 June 2021 07:48 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/5 "2021-06-30T07:48:22Z")

</div>

Hi @jlian168

It looks like you are using the SenseHAT node. If you read the help for that node, you will see if describes the format of the `msg.payload` it sends.

In this case, it sets `msg.payload` to an Object like:

```auto
msg.payload = {
   acceleration: {
      x: 1,
      y: 2,
      z: 3
  }
}

```

If you were to add a Debug node next to the SenseHat node, configured to show you `msg.payload`, you would see the full structure of the payload object.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [30 June 2021 07:52 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/6 "2021-06-30T07:52:20Z")

</div>

Dear knolleary :

ok, I see.

Thanks for ur help, Thank u very much.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [1 July 2021 01:46 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/7 "2021-07-01T01:46:40Z")

</div>

Dear Sir :

Another about msg.xxx? At pic red circle, The msg.headers Where it is from?

Thank u.

 ![螢幕擷取畫面 2021-07-01 094341](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/d/5df50c05fe26243bc36067a5a515fc5f509dc582.jpeg)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [1 July 2021 05:46 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/8 "2021-07-01T05:46:40Z")

</div>

Every node uses different message properties. They all provide help in the Help Sidebar that describes what message properties they use.

That is a Change node that is setting `msg.headers`.

That is probably being passed to an HTTP Response or HTTP Request node that uses that property to set it's headers.

---

<div class="post-metadata">

**Author:** ![jlian168](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jlian168/32/43737_2.png) [@jlian168](https://discourse.nodered.org/u/jlian168)\
**Post date:** [1 July 2021 06:02 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/9 "2021-07-01T06:02:05Z")

</div>

Dear knolleary :

ok.

Thank u,

---

<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:** [30 August 2021 06:03 UTC](https://discourse.nodered.org/t/about-msg-payload-xxxx-x/47823/10 "2021-08-30T06:03:06Z")

</div>

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