I have a problem with a function in node-red. I want to read an object of the instance spotify-premium. The problem is the hyphen in the name.
The path I would like to read is:
For your own created properties it is just easier to avoid hyphens, but if incoming data is not under your control you have option to use bracket notation
.
If in doubt about how to reference something send it to a debug node then one of the little buttons that appears when you hover over it, when clicked, will copy the path, which you can paste somewhere and look at.
I did suspect that but I typically (or rather untypically ) tend to not use the likes of change nodes and more so use function nodes. But I do appreciate why.