public String serCollectionWithTypeReference()

in jackson2/src/java/org/apache/fulcrum/json/jackson/Jackson2MapperService.java [302:309]


    public <T> String serCollectionWithTypeReference(Collection<T> src, TypeReference collectionType,
                                                     Boolean cleanCache) throws JsonProcessingException {
         String res = mapper.writerFor(collectionType).writeValueAsString(src);
         if (cleanCache) {
             cacheService.cleanSerializerCache(mapper);
         }
         return res;
     }