docs: private static final void writeJson(Writer os, //
                                          Object object, //
                                          SerializeConfig config, //
                                          SerializeFilter[] filters, //
                                          DateFormat dateFormat, //
                                          int defaultFeatures, //
                                          SerializerFeature... features) {
          SerializeWriter writer = new SerializeWriter(os, defaultFeatures, features);
  
          try {
              JSONSerializer serializer = new JSONSerializer(writer, config);
  
              if (dateFormat != null) {
                  serializer.setDateFormat(dateFormat);
                  serializer.config(SerializerFeature.WriteDateUseDateFormat, true);
              }
  
              if (filters != null) {
                  for (SerializeFilter filter : filters) {
                      serializer.addFilter(filter);
                  }
              }
              serializer.write(object);
          } finally {
              writer.close();
          }
      }