var raw = JSON.parse(value),
	body = raw.body[0],
	arr = [];

function getField(data, path) {
	var steps = path.split('.');
	for (var i = 0; i < steps.length; i++) {
		var step = steps[i];
		if (typeof data !== 'object' || typeof data[step] === 'undefined') {
			throw 'Required field "' + path + '" is not present in data received.';
		}
		data = data[step];
	}
	return data;
}

var keys = Object.keys(getField(body,'Drivers'));

	for (k in keys) {
		arr.push({
			'{#DRIVER.NAME}': keys[k],
			'{#DRIVER.DETECTED}': getField(body.Drivers[keys[k]],'Detected'),
		});
	}

	return JSON.stringify(arr);