function parseBits(bitString) {
	var bitsArray = bitString.split(' ');
	var bits = '';
	for (var i = 0; i < bitsArray.length; i++) {
		var binaryString = parseInt(bitsArray[i], 16).toString(2);

		while (binaryString.length < 8) {
			binaryString = '0' + binaryString;
		}

		bits += binaryString;
	}

	var bitFlags = {
		domLaneRxLaserPowerHighAlarm: 0,
		domLaneRxLaserPowerLowAlarm: 1,
		domLaneTxLaserBiasCurrentHighAlarm: 2,
		domLaneTxLaserBiasCurrentLowAlarm: 3,
		domLaneTxLaserOutputPowerHighAlarm: 4,
		domLaneTxLaserOutputPowerLowAlarm: 5,
		domLaneLaserTemperatureHighAlarm: 6,
		domLaneLaserTemperatureLowAlarm: 7
	};

	var result = {};

	for (var flag in bitFlags) {
		if (bitFlags.hasOwnProperty(flag)) {
			var index = bitFlags[flag];
			result[flag] = bits[index] === '1';
		}
	}

	return result;
}

return JSON.stringify(parseBits(value));