add {request,response,context}#toJSON()