lib/controllers/register.js
function defaultJsonResponse(req, res) {
  res.json({
    account: helpers.strippedAccount(req.user)
  });
}
function defaultJsonResponse(req, res) {
  res.json({
    account: helpers.strippedAccount(req.user)
  });
}
function defaultJsonResponse ( req , res ) { res . json ( { account : helpers . strippedAccount ( req . user ) } ) ; }
Delivers the default response for registration attempts that accept a JSON
content type. In this situation we simply return the new account object as
JSON

@function

@param {Object} req - The http request.
@param {Object} res - The http response.
Delivers the default response for registration attempts that accept a JSON content type . In this situation we simply return the new account object as JSON