diff --git a/net/http/src/THttpServer.cxx b/net/http/src/THttpServer.cxx
index 6a7afa7d0ced28ea949f5fadbf4438acdabb501d..d48a33c85cade4e2ab81d21cb57cd864e2f8afe6 100644
--- a/net/http/src/THttpServer.cxx
+++ b/net/http/src/THttpServer.cxx
@@ -703,7 +703,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg)
             arg->fContent.ReplaceAll("=\"jsrootsys/", repl);
          }
 
-         if (arg->fContent.Index(hjsontag) != kNPOS) {
+         if ((arg->fQuery.Index("no_h_json") == kNPOS) && (arg->fContent.Index(hjsontag) != kNPOS)) {
             TString h_json;
             TRootSnifferStoreJson store(h_json, kTRUE);
             const char *topname = fTopName.Data();
@@ -713,7 +713,7 @@ void THttpServer::ProcessRequest(THttpCallArg *arg)
             arg->fContent.ReplaceAll(hjsontag, h_json);
          }
 
-         if (arg->fContent.Index(rootjsontag) != kNPOS) {
+         if ((arg->fQuery.Index("no_root_json") == kNPOS) && (arg->fContent.Index(rootjsontag) != kNPOS)) {
             TString str;
             void *bindata = 0;
             Long_t bindatalen = 0;