var data = JSON.parse(value),
	critical_process = [],
	unique = {};

data.forEach(function (process) {
	var key = process.id;
	if (!unique[key] && process.type == 'critical_process') {
		unique[key] = true;
		critical_process.push({
			'{#ID}': process.id
		});
	}
});

return JSON.stringify(critical_process);