Hi, how do i extract the message payload only? I'm using the merge node currently and this is what im getting. im thinking of using the function node but i dont know how to code it to extract the value.
The documentation explains how to work with messages
https://nodered.org/docs/user-guide/messages
So you have an example of a JavaScript array of objects. You need to start by getting a little understanding of their structure and how to work with them.
Arrays use array syntax: msg.payload[0]
. Objects use object syntax msg.payload
or msg["payload"]
.
You can, of course, combine the 2.