import typing
import json


def _filename_to_dict(filename: str) -> typing.Dict:
    """
    Map filename for a JSON file to the de-serialized dictionary.

    Args:
        filename: The name of the JSON file.

    Returns:
        The de-serialized contents of the file as a dictionary.

    """
    with open(filename) as in_file:
        json_dict = json.loads(in_file.read())
    return json_dict