Jackson 3rd Party Class With No Default Constructor

You could make use of Jackson’s Mix-Ins feature, coupled with the Creator feature. The Mix-Ins feature alleviates the need to annotate the original third-party code, and the Creator feature provides a mechanism for custom instance creation.

For yet more customization, it’s not too involved to write a custom deserializer.

Leave a Comment