# Accessing msg properties that have a non standard variable identifier

**URL:** <https://discourse.nodered.org/t/accessing-msg-properties-that-have-a-non-standard-variable-identifier/27316>\
**Category:** General\
**Created:** [26 May 2020 13:15 UTC](https://discourse.nodered.org/t/accessing-msg-properties-that-have-a-non-standard-variable-identifier/27316 "2020-05-26T13:15:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [26 May 2020 13:29 UTC](https://discourse.nodered.org/t/accessing-msg-properties-that-have-a-non-standard-variable-identifier/27316/2 "2020-05-26T13:29:46Z")

</div>

Hi firstly, in order to make code more readable and importable it is important to post it between two sets of three backticks - ``` - see this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

As for your issue, use `msg.PMS5003["pm2.5"]` when the variable contains non valid variable name charcaters.

PS, this is called [bracket notation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Property_accessors)

---

_[View the full topic](https://discourse.nodered.org/t/accessing-msg-properties-that-have-a-non-standard-variable-identifier/27316)._
