Hi!
We had that problem a while ago and I wrote some utility classes to solve it: https://github.com/messagemedia/mm-jackson-support They might help you 😉 Cheers Ruwen [https://avatars1.githubusercontent.com/u/7088446?s=400&v=4]<https://github.com/messagemedia/mm-jackson-support> GitHub - messagemedia/mm-jackson-support: MessageMedia Utility Classes for Jackson<https://github.com/messagemedia/mm-jackson-support> github.com MessageMedia Utility Classes for Jackson. This repo contains utility/helper classes for Jackson, a Java JSON library. Currently it contains the following modules: ________________________________ From: [email protected] <[email protected]> on behalf of Alexandru Ionita <[email protected]> Sent: Thursday, 4 April 2019 9:03:26 PM To: jackson-dev Subject: [jackson-dev] Allow customization on how missing properties are deserialized Please forgive my ignorance and lack of library knowledge, but: My concern is related to how the missing properties are mapped to null by default. Wouldn't be a good idea to have the @JsonSetter annotation handle the properties classified as missing in a similar fashion as the nulls are handled? I mean, it would be handy to have the possibility to say @JsonSetter(missing=Missings.SKIP) or @JsonSetter(missing=Missings.AS_EMPTY). This is useful in the context of explicitly setting a property to null or implicitly on missing, leaving the developer with some space of maneuver in regards to the deserialization process. If there are other means to achieve this functionality, I'd be grateful to know how to use. Thank you, Alex -- You received this message because you are subscribed to the Google Groups "jackson-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. For more options, visit https://groups.google.com/d/optout. This email and any attachments to it (the "Communication") is, unless otherwise stated, confidential, may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return email, delete the Communication and the return e mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of Message4U Pty Ltd trading as MessageMedia or any of its related entities (together “MessageMedia”). MessageMedia does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication. -- You received this message because you are subscribed to the Google Groups "jackson-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
