lib/request.js
function parseJson(payload)
{
  var data;

  try
  {
    data = JSON.parse(payload);
  }
  catch (e)
  {
    this.logger.error({message: 'Unable to parse provided JSON', error: e, payload: payload});
  }

  return data;
}
function parseJson(payload)
{
  var data;

  try
  {
    data = JSON.parse(payload);
  }
  catch (e)
  {
    this.logger.error({message: 'Unable to parse provided JSON', error: e, payload: payload});
  }

  return data;
}
function parseJson ( payload ) { var data ; try { data = JSON . parse ( payload ) ; } catch ( e ) { this . logger . error ( { message : 'Unable to parse provided JSON' , error : e , payload : payload } ) ; } return data ; }
Parses provided JSON payload into object

@private
@this    Fbbot#
@param   {string} payload - JSON string to parse
@returns {object|undefined} - parsed object or `undefined` if unable to parse
Parses provided JSON payload into object