import json


def read_file(path: str) -> dict:
    """
    Reads a .json file and converts it to a dictionary.
    """
    with open(path, 'r') as data:
        info_dict = json.load(data)

    return info_dict