docs: public static void writeJson(@javax.annotation.Nonnull final OutputStream out, final Object obj) throws IOException {
      final ObjectMapper mapper = new ObjectMapper().enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL)
        .enable(SerializationFeature.INDENT_OUTPUT);
      @javax.annotation.Nonnull final ByteArrayOutputStream buffer = new ByteArrayOutputStream();
      mapper.writeValue(buffer, obj);
      out.write(buffer.toByteArray());
    }