import json


def get_class_names(path):
    """
    This function returns the JSON representation of category labels to class names

    Inputs:
        - path: The path to the JSON file containing the mapping
    
    Outputs:
        - cat_to_name: JSON object representing the mapping
    """

    with open(path, 'r') as f:
        cat_to_name = json.load(f)
    f.close()
    
    return cat_to_name