I am using a Sonoff Bridge and some 433 MHz buttons.
Two buttons work without any error. This is the output from the RF Bridge:
{"Time":"2020-11-11T17:17:45","RfReceived":{"Sync":13070,"Low":420,"High":1260,"Data":"DD80F1","RfKey":"None"}}
{"Time":"2020-11-11T17:24:30","RfReceived":{"Sync":13060,"Low":420,"High":1260,"Data":"DD80F8","RfKey":"None"}}
But, these two buttons produce an error from the json node:
"Unexpected token O in JSON at position 0"
This is the output from the RF Bridge:
{"Time":"2020-11-11T17:16:36","RfReceived":{"Sync":13050,"Low":420,"High":1250,"Data":"DD80F8","RfKey":"None"}}
{"Time":"2020-11-11T17:22:37","RfReceived":{"Sync":13070,"Low":420,"High":1260,"Data":"DD80F4","RfKey":"None"}}
The data from all four buttons looks virtually the same, so why am I getting the error from the json node on two of them?
Here is my test flow:
[{"id":"b24b6fa8.2a3c3","type":"mqtt in","z":"eb64de9a.f978e","name":"RF Bridge","topic":"tele/bridge1/RESULT","qos":"0","datatype":"auto","broker":"52bf28e2.c2a1e8","x":580,"y":1280,"wires":[["e0304c46.991e7","b1faf87e.608748"]]},{"id":"e0304c46.991e7","type":"json","z":"eb64de9a.f978e","name":"","property":"payload","action":"","pretty":false,"x":710,"y":1280,"wires":[["397f1ed6.cea942"]]},{"id":"397f1ed6.cea942","type":"function","z":"eb64de9a.f978e","name":"Just the data","func":"// just the data\nvar myData = msg.payload.RfReceived.Data;\nmsg.payload = myData;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":870,"y":1280,"wires":[["b78ce0dd.d030e"]]},{"id":"b78ce0dd.d030e","type":"debug","z":"eb64de9a.f978e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1050,"y":1280,"wires":[]},{"id":"b1faf87e.608748","type":"debug","z":"eb64de9a.f978e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":710,"y":1220,"wires":[]},{"id":"52bf28e2.c2a1e8","type":"mqtt-broker","broker":"192.168.1.124","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","willTopic":"","willQos":"0","willPayload":""}]