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
  • 90,369
  • 161
  • 124
  • 175
mahfuj asif
  • 1,097
  • 6
  • 23

0 Answers0