added RewriteJsonResponseContentTypeMiddleware