code: def _default(self, obj):
          
          return obj.__dict__ if isinstance(obj, JsonObj) else json.JSONDecoder().decode(obj)
docs: return a serialized version of obj or raise a TypeError
  
          :param obj:
          :return: Serialized version of obj