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

	data.forEach(function (interface) {
		var key = interface.id;
		if (!unique[key] && interface.type == 'interface' ) {
			unique[key] = true;
			interfaces.push({
				'{#DESCR}': interface.name,
				'{#NAME}': interface.id
			});
		}
	});

return JSON.stringify(interfaces);