import json


def read_dict(filepath, encoding='utf-8'):
    """
    Read a dictonary from a JSON file.

    :param str filepath: Path to file
    :param str encoding: File encoding to use
    :returns: The dictionary
    :rtype: dict
    """
    with open(filepath, mode='r', encoding=encoding) as f:
        return json.loads(f.read())