import json


def get_target_names(json_label_decode):
    """Get encode of label

    Args: 
        json_label_decode (string): path to json file

    Returns:
        [dict] encode of label
    """
    if json_label_decode:
        with open(json_label_decode) as f:
            label_decode = json.load(f)

        target_names = []
        for i in label_decode:
                target_names.append(label_decode[i])

        return target_names
        
    else: raise ValueError('[ERROR]: {} is not found'.format(json_label_decode))