var interfaces = JSON.parse(value),
	result;

if (Array.isArray(interfaces.response.result.hw.entry) && interfaces.response.result.hw.entry.length > 0) {
	result = interfaces.response.result.hw.entry.map(function (interface) {
		return {
			'{#IFNAME}': interface.name,
			'{#IFSPEED}': interface.speed
		};
	});

	return JSON.stringify(result);
}

return JSON.stringify([]);