code: public static <T> void writeListTo(OutputStream out, List<T> messages, 
              Schema<T> schema, boolean numeric) throws IOException
      {
          final IOContext context = new IOContext(DEFAULT_JSON_FACTORY._getBufferRecycler(), 
                  out, false);
          
          final JsonGenerator generator = newJsonGenerator(out, 
                  context.allocWriteEncodingBuffer(), 0, true, context);
          /*final JsonGenerator generator = DEFAULT_JSON_FACTORY.createJsonGenerator(out, 
                  JsonEncoding.UTF8);*/
          try
          {
              writeListTo(generator, messages, schema, numeric);
          }
          finally
          {
              generator.close();
          }
      }
docs: Serializes the {@code messages} into the stream using the given schema.