docs: public void toJson(Object src, Type typeOfSrc, Appendable writer) throws JsonIOException {
      try {
        JsonWriter jsonWriter = newJsonWriter(Streams.writerForAppendable(writer));
        toJson(src, typeOfSrc, jsonWriter);
      } catch (IOException e) {
        throw new JsonIOException(e);
      }
    }