docs: public void toJson(Object src, Appendable writer) throws JsonIOException {
      if (src != null) {
        toJson(src, src.getClass(), writer);
      } else {
        toJson(JsonNull.INSTANCE, writer);
      }
    }