fix loading of JSON

MQTT has no content types so we need to make some assumptions - hack
JSON.loads() for now