How to access a msg.payload that starts with @

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?

You can use the bracket notation for accessing object properties:

msg.payload['@attributes']
1 Like

I had tried it without the quotation marks.

Thank you very much for the speed and the help

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