def _process(json_data):
    """Return a list of filenames grouped by iteration."""

    iterations = []
    for iteration in json_data[u'iterations']:
        filenames = [x[u'filename'] for x in iteration[u'spreadsheets']]
        iterations.append(filenames)

    return iterations