index.js
function determineJSON(xml) {
	var json = null;
	parseString(xml, function(err, result) {
		if (err) {
			// TODO
			console.log(err);
		} else {
			json = result;
		}
	});
	return json;
}
function determineJSON(xml) {
	var json = null;
	parseString(xml, function(err, result) {
		if (err) {
			// TODO
			console.log(err);
		} else {
			json = result;
		}
	});
	return json;
}
function determineJSON ( xml ) { var json = null ; parseString ( xml , function ( err , result ) { if ( err ) { // TODO console . log ( err ) ; } else { json = result ; } } ) ; return json ; }
It determines the JSON object from XML.

@param xml
{string} GetCapabilities document as XML.
@returns {object} GetCapabilities document as JSON.
It determines the JSON object from XML .