Unexpected token s in JSON at position 0


hello everyone, i want get output a object, it was right but had a error.
"Unexpected token s in JSON at position 0"
Could anyone help me with that issue, some suggestion how to find the reason?

You are sending a string "so1" to a JSON node. That node will convert a JSON string to a javascript object, or a javascript object to a JSON string. The string you are giving it is not valid json.
What are you wanting to do with the string?

How to stop string "so1" send through mqtt node

i solved, i have 2 topic: checkID1 and checkID2, It looks like the name is almost the same, so error, i changed name, i success :smile:

1 Like