<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _default(self, obj):
 """ return a serialized version of obj or raise a TypeError :param obj: :return: Serialized version of obj """

        return obj.__dict__ if isinstance(obj, JsonObj) else json.JSONDecoder().decode(obj)