def get_dict_from_json_file(path, encoding='utf-8'):
    """Gets a dict of data form a json file.

    :param path: the absolute path to the file
    :param encoding: the encoding the file is in
    """
    with open(path, encoding=encoding) as data_file:
        return json.loads(data_file.read())