import json


def iiif_info_json(images):
    """Add /info.json to a list of IIIF image IDs and dump to JSON,
    for OpenSeaDragon to parse.
    """
    return json.dumps([image["image"].info() for image in images])