lib/_utils/parse.js
function parse(data, callback) {
  var parsed;

  try {
    parsed = JSON.parse(data);
  } catch (e) {
    return callback(e);
  }

  return callback(null, parsed);
}
function parse(data, callback) {
  var parsed;

  try {
    parsed = JSON.parse(data);
  } catch (e) {
    return callback(e);
  }

  return callback(null, parsed);
}
function parse ( data , callback ) { var parsed ; try { parsed = JSON . parse ( data ) ; } catch ( e ) { return callback ( e ) ; } return callback ( null , parsed ) ; }
Parse the contents of a string as JSON.

@private
@static
@since    1.3.0
@category Utilities

@param    {String}    data     - String you would like to parse as JSON.
@param    {Function}  callback - Callback with an error or parsed JSON.
@returns  {undefined}
Parse the contents of a string as JSON .