import json


def load_results_from_json(filename: str) -> dict:
    """
    Parses a JSON file and returns results as a dictionary.

    Parameters
    ----------
    filename: str
        Input file name to load.
    sort_keys: bool, optional, default: True
        Flag to sort keys in the dictionary, including inner dictionaries.
    """
    with open(filename, 'r') as in_file:
        data = json.load(in_file)

    return data