I came across this library eclipse-collections and it fits my use case. But unfortunately, I am not able to deserialize it using either Gson or Jackson - the two most popular libraries for serialization/deserialization.
Does any of the two libraries provide support for eclipse collections? If yes, then how?
One of the docs on the Readme of the official github repo of eclipse-collections mentions:
Not only do they mention the issue but they also provide the solution to it. All you need to do is register the
EclipseCollectionsModulewith Jackson'sObjectMapperobject like so:Once you have done the above, you can now use the ObjectMapper as usual. So,