# How to access a msg.payload that starts with @

**URL:** https://discourse.nodered.org/t/how-to-access-a-msg-payload-that-starts-with/78048
**Category:** General
**Created:** [30 April 2023 15:21 UTC](https://discourse.nodered.org/t/how-to-access-a-msg-payload-that-starts-with/78048 "2023-04-30T15:21:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sfdiaz](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sfdiaz](https://discourse.nodered.org/u/sfdiaz)
#### Post date: [30 April 2023 15:21 UTC](https://discourse.nodered.org/t/how-to-access-a-msg-payload-that-starts-with/78048/1 "2023-04-30T15:21:23Z")

</div>

I am trying to access a msg.payload that starts with @

msg.payload = msg.payload.@attributes;

and I get this error. Does anyone know of a way to access the data?

---

<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 April 2023 15:22 UTC](https://discourse.nodered.org/t/how-to-access-a-msg-payload-that-starts-with/78048/2 "2023-04-30T15:22:21Z")

</div>

You can use the bracket notation for accessing object properties:

```auto
msg.payload['@attributes']

```

---

<div class="post-metadata">

### Author: ![sfdiaz](https://avatars.discourse-cdn.com/v4/letter/s/f475e1/32.png) [@sfdiaz](https://discourse.nodered.org/u/sfdiaz)
#### Post date: [30 April 2023 15:50 UTC](https://discourse.nodered.org/t/how-to-access-a-msg-payload-that-starts-with/78048/3 "2023-04-30T15:50:10Z")

</div>

I had tried it without the quotation marks.

Thank you very much for the speed and the help

---

<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: [14 May 2023 15:50 UTC](https://discourse.nodered.org/t/how-to-access-a-msg-payload-that-starts-with/78048/4 "2023-05-14T15:50:30Z")

</div>

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