import json


def read_from_json_file(filename: str) -> dict:
    """
    Read the data from a json file.

    Parameters
    ----------
    filename : str
        name of the file

    Returns
    -------
    data : dict
        all data of the file
    """
    file = open(filename, 'r')
    data = json.loads(file.read())
    file.close()
    return data