try {
	parsed = JSON.parse(value);
	var result = [];

	function getNodes(nodes, state) {
		Object.keys(nodes).forEach(function (field) {
			var Node = {};
			Node['HostName'] = field || '';
			Node['adminState'] = nodes[field].adminState || '';
			Node['operState'] = state || '';
			Node['version'] = nodes[field].version || '';
			result.push(Node);
		});
	}

	getNodes(JSON.parse(parsed.beans[0].LiveNodes), 'Live');
	getNodes(JSON.parse(parsed.beans[0].DeadNodes), 'Dead');
	getNodes(JSON.parse(parsed.beans[0].DecomNodes), 'Decommission');
	getNodes(JSON.parse(parsed.beans[0].EnteringMaintenanceNodes), 'Maintenance');

	return JSON.stringify(result);
}
catch (error) {
	throw 'Failed to process response received from Hadoop';
}