code: function parseMiddleware(ctx, next) {
        try {
          ctx.event = JSON.parse(ctx.content.toString());
          next();
        } catch (e) {
          throw e;
        }
      }
docs: Parse JSON middleware
  
  @param {String} msg