code: @GwtIncompatible("Unnecessary")
    private boolean isOutputInJson() {
      return config.jsonStreamMode == JsonStreamMode.OUT
          || config.jsonStreamMode == JsonStreamMode.BOTH;
    }
docs: Returns whether output should be a JSON stream.