I've come about to a bit of a pickle. Suppose I have the following 
structure:

class CollectionWrapper<T> implements Collection<T> {
    private int count;
    private Collection<T> items;
    
    // getters setters omitted for brevity
    // Collection<T> methods delegated to items field
    // int size() method returns items.size()
}

Basically the structures I'm trying to work with are wrappers for arrays 
that contain total item count, but not "next page", or similar fields. As 
of right now, Jackson treats them as if they start with 
`JsonToken.START_ARRAY` (because it implements the Collection<T> interface) 
when in reality they're object wrappers. How do I configure jackson 
(preferably via JsonMapper.Builder) that this particular class should be 
deserialized as object, rather than an array?

Cheers!

// Mantas

-- 
You received this message because you are subscribed to the Google Groups 
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jackson-user/ff942dc9-b537-4dd1-a86e-5ce2d8094c8dn%40googlegroups.com.

Reply via email to