docs: public final JsonElement toJsonTree(T value) {
      try {
        JsonTreeWriter jsonWriter = new JsonTreeWriter();
        write(jsonWriter, value);
        return jsonWriter.get();
      } catch (IOException e) {
        throw new JsonIOException(e);
      }
    }