

def default(self, value):
    '\n        Handle UUID, datetime, and callables.\n\n        :param value: Value to encode\n        '
    if isinstance(value, uuid.UUID):
        return str(value)
    elif isinstance(value, datetime.datetime):
        return value.isoformat()
    elif callable(value):
        return str(value)
    return json.JSONEncoder.default(self, value)

dataset/ETHPy150Open ColtonProvias/sqlalchemy-jsonapi/sqlalchemy_jsonapi/flaskext.py JSONAPIEncoder.default/original