mqtt payload format

added json.dumps() on publish payload