def added_json_serializer(obj):
    """
    Default json encoder function for supporting additional object types.
    
    Parameters
    ----------
    obj : `iterable`
    
    Returns
    -------
    result : `Any`
    
    Raises
    ------
    TypeError
        If the given object is not json serializable.
    """
    obj_type = obj.__class__
    if hasattr(obj_type, '__iter__'):
        return list(obj)
    
    raise TypeError(f'Object of type {obj_type.__name__!r} is not JSON serializable.',)