import json


def load_attribute_map_from_json(file_path):
    """Load an attribute dictionary stored in a JSON file.

    Parameters
    ----------
    file_path : str
        Path to the attribute map file.

    Returns
    -------
    dict
        Dictionary whose keys and values are provided by the object stored in
        the given JSON file. Keys are attributes found in the sample or prep
        metadata files; values are the names of attributes in a Sample, Subject
        or Preparation object.
    """
    with open(file_path) as file:
        json_str = file.read()
    attribute_map = json.loads(json_str)
    return attribute_map