var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var request_kind = item.labels.resource + item.labels.scope + item.labels.verb;
	if (!(lookup[request_kind])) {
		lookup[request_kind] = 1;
		result.push({
			'{#RESOURCE}': item.labels.resource,
			'{#SCOPE}': item.labels.scope,
			'{#VERB}': item.labels.verb
		});
	}
});
return JSON.stringify(result);