That is the way to convert an object into a json string.  :)  If you do not like overwriting the instance attribute, you could pass `json.dumps(self.config)` in the cass response instead of `self.config`.  Also, since the state only cares about the name, you could just construct a random json string here yourself and pass it along.