def _serialize(self, zenpy_object):
<EOL>if not type(zenpy_object) == dict:<EOL><INDENT>log.debug("<STR_LIT>".format(zenpy_object))<EOL>self._dirty_object = zenpy_object<EOL><DEDENT>return json.loads(json.dumps(zenpy_object, default=json_encode_for_zendesk))<EOL>
Serialize a Zenpy object to JSON