I hope someone who has had similar issue can share how they implemented limitations.
-+ Tatu +- On Wed, Mar 15, 2017 at 9:40 PM, <[email protected]> wrote: > Thanks for the quick reply. Are there workarounds to implement these? > > On Thursday, March 16, 2017 at 1:45:06 AM UTC+5:30, Tatu Saloranta wrote: >> >> There is no such functionality available for either aspects. >> >> First one is unlikely to be supported at all as the delegation means >> that none of serializers is concerned with more than one level (or, >> possibly another small fixed number considering wrapping for type id >> handling, or "unwrapped" properties). >> >> Second one isn't something for which there is specific support, >> although theoretically it could perhaps be supported via annotations >> (new property for `@JsonFormat`). But I do not recall this feature >> having been requested previously so it's not being worked on. >> >> -+ Tatu +- >> >> >> >> On Wed, Mar 15, 2017 at 12:05 PM, <[email protected]> wrote: >> > While serializing an Object to JSON, how can I limit / put a threshold >> > on: >> > 1. The depth/nesting of objects (i.e. serialize up to 'n' levels only) >> > 2. Size of collections (i.e. serialize only 'n' number of items of the >> > collection) >> > >> > I'm searching for a solution that works for 3rd party classes (source >> > code >> > of classes not available). Deserializing the JSON back is not a concern, >> > I'm >> > only serializing them. >> > Using jackson-core, version 2.8.6 >> > >> > -- >> > 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 post to this group, send email to [email protected]. >> > For more options, visit https://groups.google.com/d/optout. > > -- > 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 post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- 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 post to this group, send email to [email protected]. For more options, visit https://groups.google.com/d/optout.
