lib/package.js
function tryParse(data) {
  var json;
  try {
    json = JSON.parse(data);
  } catch (ex) { debug('tryParse exception %s for data %s', ex, data); }

  return json || data;
}
function tryParse(data) {
  var json;
  try {
    json = JSON.parse(data);
  } catch (ex) { debug('tryParse exception %s for data %s', ex, data); }

  return json || data;
}
function tryParse ( data ) { var json ; try { json = JSON . parse ( data ) ; } catch ( ex ) { debug ( 'tryParse exception %s for data %s' , ex , data ) ; } return json || data ; }
Try to parse a string as JSON, otherwise return the string
Try to parse a string as JSON otherwise return the string