import json


def load_json_file_settings(filename):
    """
    Loads a json file as configuration
    The json file should contain a JSON
    object and not a JSON array, string or other
    value

    :param unicode filename: The name of
        the json file to load
    :return: A dictionary of the values from
        the json file
    :rtype: dict
    """
    with open(filename, mode='r') as f:
        return json.load(f)