For example in the given array; (array is updated with different value every sec)
I would like to indicate that 93 is humidity, 30 is temperature, 9 is x in JSON format. [which look something like this ( "humidity": 93, "temperature": 30, "x": 9 ) ]
Any idea what the code is like in the function node?
msg.payload = msg.payload.humidity;