Re: [jackson-user] Using a converter only on root object/collection

2017-02-13 Thread Tatu Saloranta
On Mon, Feb 13, 2017 at 4:46 AM, Clément Poulain wrote: > Hi Tatu, thanks for the reply. > > I wanted to avoid using a wrapper as my REST API is built on top of > interfaces used for other things, and I would like to keep them untouched. > I have a large number of calls

Re: [jackson-user] Using a converter only on root object/collection

2017-02-13 Thread Clément Poulain
Hi Tatu, thanks for the reply. I wanted to avoid using a wrapper as my REST API is built on top of interfaces used for other things, and I would like to keep them untouched. I have a large number of calls returning any Collection (Set, List, UnmodifiableSet, etc.), so doing it purely on Jackson

[jackson-user] Using a converter only on root object/collection

2017-02-07 Thread Clément Poulain
Hi there, I'm trying to implement pagination using Jersey and Jackson. I don't want to modify my API, so I would like the pagination to take place during serialization. To simplify, lets pretend I simply want to add the size of a collection when serializing it. The current output is: [ {