0

I want to create an object in such a way that mentioned fields will be skipped during serialization. Is it possible to do with Jackson or in any other way? I must not change anything or add any annotation on my class.

It must not remove setter from class or use @JsonIgnore, because I need the field in other places

For example, if my class has two fields, a and b, I want to create an object x in such a way that when x is serialized, the serialized data contains only a.

Mark Rotteveel
  • 100,966
  • 191
  • 140
  • 197
mahfuj asif
  • 1,691
  • 1
  • 11
  • 32

0 Answers0