lib/context.js
function(){
            return {
                request: this.request.toJSON(),
                response: this.response.toJSON(),
                app: this.app.toJSON(),
                originalUrl: this.originalUrl,
                req: '<original node req>',
                res: '<original node res>',
                socket: '<original node socket>',
            };
        }
function(){
            return {
                request: this.request.toJSON(),
                response: this.response.toJSON(),
                app: this.app.toJSON(),
                originalUrl: this.originalUrl,
                req: '<original node req>',
                res: '<original node res>',
                socket: '<original node socket>',
            };
        }
function ( ) { return { request : this . request . toJSON ( ) , response : this . response . toJSON ( ) , app : this . app . toJSON ( ) , originalUrl : this . originalUrl , req : '<original node req>' , res : '<original node res>' , socket : '<original node socket>' , } ; }
Return JSON representation.

Here we explicitly invoke .toJSON() on each
object, as iteration will otherwise fail due
to the getters and cause utilities such as
clone() to fail.

@return {Object}
@api public
Return JSON representation .