import json


def load_contents(filename: str) -> map:
    """Load and convert contents from file

    :param filename: input filename
    :return: contents map
    """
    contents = json.load(fp=open(filename))
    return contents