code: public static <E> String serialize(List<E> list, Class<E> jsonObjectClass) throws IOException {
          return mapperFor(jsonObjectClass).serialize(list);
      }
docs: Serialize a list of objects to a JSON String.
  
  @param list The list of objects to serialize.
  @param jsonObjectClass The @JsonObject class of the list elements