Json is returned truncated to the first comma. It seems to be because of using split(",") in line 547 in mqtt.py.