licenseMask has not got a property value. You want msg.payload = msg.payload.licenseMask
There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path to any data item.
Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.
Thanks Colin. I have read the page but for it just stops short of giving enough examples to make sense of. At least for someone with little experience like me.
So in the example on that page. I understand that the property is an object called msg.payload. But the bit I dont grasp is within that object, what are 'Firstname', 'Surname' and 'Age' referrred to as? Strings? And if 'Fred', 'Smith' and '28' are not values of those, what are they refered to as?
I am certain this is basic stuff for you guys but i'm clearly not understanding something very basic here.
Using the example you posted at the start, then licenseMask is a property of the object msg.payload, just as payload is a property of the object msg. So msg.payload.licenseMask has the value "128851337727". The quotes tell you that the type of the property is String, without the quotes it would be a Number.
To answer your question, in the link I posted, "Fred" is the value of the property msg.payload.firstName. Think of msg.payload.firstName as a heirarchical address, like town.street.house, and "Fred" is the what is stored in the house.
Yes, it does now I have reread your original comment.
When you said;
Blockquote licenseMask has not got a property value
Blockquote
I was reading it as, LicenseMask does not have an associated value. But now I see you were saying there was no property called value in the object. Which is what I was mistakingly trying to do by using the code