Dereferencing map type

I am using a node (from node-red-aircon-rac-wf) that returns a payload of type "map". Not "object".

To my great surprise it seems that I cannot reference a property in this object/map (in a Change node) with either msg.payload.propertyName nor msg.payload["propertyName"]

Any suggestions on how to get the values of properties in this payload? Or maybe I am missing something obvious?

You could use a function node...

msg.payload = msg.payload.get('name')
return msg

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