import json


def read_json_file(filename: str) -> dict:
    """
    Read a JSON file.

    :type filename: str
    :param filename: name of file

    :rtype: dict
    :return: dict of contents
    """
    with open(filename, 'r') as f:
        return json.load(f)