Hi @Tom999 - Welcome to the community forum.
Try Google search:
telegraf error in plugin invalid character ' ' after top-level value
This post talks about the same error message and this post is about the same setup (MQTT/Telegraf/InfluxDB). Also This Forum Post is about the same subject. All of these say something isn’t right (e.g., a bad format or unexpected character) in the JSON.