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

if (Array.isArray(interfaces.response.result.ifnet.entry) && interfaces.response.result.ifnet.entry.length > 0) {
	result = interfaces.response.result.ifnet.entry.map(function (interface) {
		return {
			'{#IFNAME}': interface.name,
			'{#VSYS}': interface.vsys,
			'{#IFZONE}': interface.zone !== null ? interface.zone : "null"
		};
	});

	return JSON.stringify(result);
}

return JSON.stringify([]);