code: public JsonObject export() {
          JsonObject result = JsonObject.create();
          injectParams(result);
  
          JsonObject queryJson = JsonObject.create();
          queryPart.injectParamsAndBoost(queryJson);
          return result.put("query", queryJson);
      }
docs: Exports the whole query as a {@link JsonObject}.
  
  @see #injectParams(JsonObject) for the part that deals with global parameters
  @see AbstractFtsQuery#injectParamsAndBoost(JsonObject) for the part that deals with the "query" entry