Fixed publishing JSONs from MQTT.