def JSONList(*args, **kwargs):
    """Stores a list as JSON on database, with mutability support.

    If kwargs has a param `unique_sorted` (which evaluated to True),
    list values are made unique and sorted.
    """
    type_ = JSON
    try:
        if kwargs.pop("unique_sorted"):
            type_ = JSONUniqueListType
    except KeyError:
        pass

    return MutationList.as_mutable(type_(*args, **kwargs))
def JSONList ( * args , ** kwargs ) : type_ = JSON try : if kwargs . pop ( "unique_sorted" ) : type_ = JSONUniqueListType except KeyError : pass return MutationList . as_mutable ( type_ ( * args , ** kwargs ) )
Stores a list as JSON on database, with mutability support.

    If kwargs has a param `unique_sorted` (which evaluated to True),
    list values are made unique and sorted.