var data = JSON.parse(value).data;
var result = {};

data.forEach(function(item) {
	var attributes = item["{#JMXATTR}"].split(".");
	var license = attributes[0].replace("jira-","");
	var property = attributes.slice(1).join('_');
	if (!result[license]) {
		result[license] = {'properties': {} };
	}

	result[license]['properties'][property] = item["{#JMXVALUE}"];
});

return JSON.stringify(result);