Turns the param entries of elements in a list elements into tuples, used
    in :func:`MzmlScan._fromJSON()` and :func:`MzmlPrecursor._fromJSON()`.

    .. note:: only intended for a list of elements that contain params. For
        example the mzML element ``selectedIonList`` or ``scanWindowList``.

    :param oldList: [[paramList, paramList, ...], ...]

    :returns: [[paramTuple, paramTuple, ...], ...]

def _mzmlListAttribToTuple(oldList):
    """Turns the param entries of elements in a list elements into tuples, used
    in :func:`MzmlScan._fromJSON()` and :func:`MzmlPrecursor._fromJSON()`.

    .. note:: only intended for a list of elements that contain params. For
        example the mzML element ``selectedIonList`` or ``scanWindowList``.

    :param oldList: [[paramList, paramList, ...], ...]

    :returns: [[paramTuple, paramTuple, ...], ...]
    """
    newList = list()
    for oldParamList in oldList:
        newParamLIst = [tuple(param) for param in oldParamList]
        newList.append(newParamLIst)
    return newList