There is no functionality to do it the way you suggested (although
immutability of classes is not a blocker, you could use mix-in
annotations).
But wouldn't it be simpler to use a simple wrapper structure to get
structure match the output, instead of trying to change the whole
serialization logic
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:
[
{