public Collection deSerCollection()

in jackson2/src/java/org/apache/fulcrum/json/jackson/Jackson2MapperService.java [284:292]


    public <T> Collection<T> deSerCollection(String json, Object collectionType, Class<T> elementType)
            throws Exception {
        if (collectionType instanceof TypeReference) {
            return deSerCollectionWithTypeReference(json, (TypeReference<T>) collectionType);
        } else {
            return mapper.readValue(json, mapper.getTypeFactory()
                    .constructCollectionType(((Collection<T>) collectionType).getClass(), elementType));
        }
    }