import json


def manifest_get_data(to_path,key_name,attribute):
    """
    Extract an attribute value from the manifest of an integration
    
    :param to_path:     the output path to integration md files
    :param key_name:    integration key name for root object
    :param attribute:   attribute to get data from
    :return: manifest.json attribute
    """ 
    with open('{}{}_manifest.json'.format(to_path, key_name)) as manifest:
        manifest_json = json.load(manifest)
        return manifest_json[attribute]