lib/profile.js
/**
* Parse profile.
*
* @param {object|string} json
* @return {object}
* @api public
*/
exports.parse = function(json) {
if ('string' == typeof json) {
json = JSON.parse(json);
}
var profile = {};
profile.id = json.user.encodedId;
profile.displayName = json.user.displayName;
return profile;
};