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

	function getNodes(nodes) {
		Object.keys(nodes).forEach(function (field) {
			var Node = {};
			Node['{#HOSTNAME}'] = nodes[field].HostName || '';
			Node['{#NODEHTTPADDRESS}'] = nodes[field].NodeHTTPAddress || '';
			result.push(Node);
		});
	}

	getNodes(JSON.parse(parsed.beans[0].LiveNodeManagers));

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