var lookup = {},
	result = [];

JSON.parse(value).forEach(function (item) {
	var type = item.labels.type;
	if (!(lookup[type])) {
		lookup[type] = 1;
		result.push({ "{#TYPE}": type });
	}
});

return JSON.stringify(result);