const data = value.split("\n");

var base_oid = ".1.3.6.1.4.1.47196.4.1.1.3.22.1.0.1.1.3",
	lld_json = [];

for (var line in data) {
	var index = data[line].indexOf(base_oid);

	if (index !== -1) {
		var result = [],
			oid = data[line].split(' ')[0],
			tail = oid.substring(index + base_oid.length + 1),
			parts = tail.split('.');

		var i = 0;
		while (i < parts.length) {
			var len = parseInt(parts[i]);
			if (isNaN(len) || len < 1 || i + len >= parts.length) {
				i++;
				continue;
			}

			var isAscii = true;
			for (var j = 0; j < len; j++) {
				var val = parseInt(parts[i + 1 + j]);
				if (val < 32 || val > 126) {
					isAscii = false;
					break;
				}
			}

			if (isAscii) {
				var str = '';
				for (var j = 0; j < len; j++) {
					str += String.fromCharCode(parseInt(parts[i + 1 + j]));
				}
				result.push(str);
				i = i + 1 + len;
			}
			else {
				i++;
			}
		}

		lld_json.push({'{#SNMPVALUE}': result.join(" "), '{#SNMPINDEX}': tail});
	}
}

return JSON.stringify(lld_json);