I get this error message when I’m trying to feed JSON data via MQTT and Telegraf.
2022-05-05T06:39:15Z E! [inputs.mqtt_consumer] Error in plugin: invalid character ‘0’ after object key:value pair
The MQTT message looks like this.

Is the double 00 before the float value 0.x causing the problem or is it something else?
Is the double 00 before the float value 0.x causing the problem or is it something else?
It is very likely that the triple leading zero is the issue. If I try to reproduce that using a JSON document, it will complain of invalid JSON. Removing the extra two ‘0’ (e.g. 0.01
) results in success.
This seems to be the case. However, is there something to explain this? Invalid data type / structure?
The sensor provides an invalid or at least extremely unusual number format. The standard json parser cannot cope with this.