Switch from json not working for me

Really basic but it is not working for me
Here is a snippet of the flow I am working with
image

here is the switch node setup
image

Here is the debug messages

3/7/2023, 12:16:23 PMnode: debug 8
fdrs/data : msg.payload : string[39]
"{"id":1,"type":3,"data":32,"time":9067}"
3/7/2023, 12:16:23 PMnode: debug 8
fdrs/data : msg.payload : string[48]
"{"id":1,"type":1,"data":22.06900024,"time":9067}"

As you can see I am getting nothing from the switch statement... what am I missing ?

Your payload is a string not an object remove or bypass the json node.

ok, thanks, So the json setup it says convert to a json string and object.
What object does it refer to ?

standard setting of json node is :-
if payload is an object convert to string.
if payload is a string convert to object.

you can set it to always do one or the other to.

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