lib/connection.js
function jsonParse(data) {

  var payload;
  try {
    payload = JSON.parse(data);
  }
  catch (error) {
    logger(error);
    payload = null;
  }
  return payload;
}
function jsonParse(data) {

  var payload;
  try {
    payload = JSON.parse(data);
  }
  catch (error) {
    logger(error);
    payload = null;
  }
  return payload;
}
Quarantined JSON.parse try/catch block in its own function

@param {String} data - json data to be parsed
@returns {Object} Parsed json data