fix(detailedresponse): Check if it is a json
@@ -157,7 +157,7 @@ class DetailedResponse(object):
def _to_dict(self):
_dict = {}
if hasattr(self, 'result') and self.result is not None:
- _dict['result'] = self.result
+ _dict['result'] = self.result if isinstance(self.result, dict) else 'Http response object'
if hasattr(self, 'headers') and self.headers is not None:
_dict['headers'] = self.headers
return _dict
