Accessing msg properties that have a non standard variable identifier

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

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

PS, this is called bracket notation

1 Like