code: public static <E> void serialize(List<E> list, OutputStream os, Class<E> jsonObjectClass) throws IOException {
          mapperFor(jsonObjectClass).serialize(list, os);
      }
docs: Serialize a list of objects to an OutputStream.
  
  @param list The list of objects to serialize.
  @param os The OutputStream to which the list should be serialized
  @param jsonObjectClass The @JsonObject class of the list elements