I have a list of objects with a field "description". This field can be huge (+3000 char) but I use it in the preview (I display only the 100 firsts char).
Is there a way in jackson to limit the size of a String on write ? I only want jackson to crop it to 100 chars. (No bean validation required here).
For exemple, if I have an object like this :
{
"description" : "bla bla bla bla... + 3000 char"
}
Ideally I want it be cropped like thie :
{
"description" : bla bla [max 100 chars] bla..."
}
Thank you.