how to make objectmapper ignore some constructor parameter
I’ve a POJO which I want to ignore certain fields while ObjectMapper
deserialization at same time i want to have an @AllArgsConstructor
how can I annotate a certain field to make it work?
how to make objectmapper ignore some constructor parameter
I’ve a POJO which I want to ignore certain fields while ObjectMapper
deserialization at same time i want to have an @AllArgsConstructor
how can I annotate a certain field to make it work?
how to copy settings of ObjectMapper
I have an ObjectMapper
, which is considered the standard one, with several options set. It is defined like this:
Jackson filter fields in different classes
I’m trying to solve a problem: I have several classes and I need, depending on the class, to filter out some fields from serialization. I wrote the following code: