import logging
import json


def json_load(filename: str = 'config.json') -> dict:
    """Takes filename of a json file and returns the data it reads from it.

       :parameter filename: Filename of json file to be read, default file is 'config.json'
       :type filename: str, optional

       :return: The dictionary loaded from the json file
       :rtype: dict
    """
    logging.info("loading json file")
    with open(filename, "r", encoding='utf-8') as json_data_file:
        logging.info("json file loaded")
        return json.load(json_data_file)