import json


def load_dict_from_json(json_path: str) -> dict:
    """
    function to load json
    :param json_path: path to the file
    :return: dict
    """
    with open(json_path) as f:
        params = json.load(f)
        return params