-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to deserialize a kotlin.ranges.ClosedRange<T> with Jackson #663
Comments
At this time, deserialization of From what little I have tried, it seems that the simplest policy for the current implementation is to implement It is theoretically possible to implement a deserializer for each of the internal types, but this seemed to get rather complicated, especially for the common |
upd: Although it still relies on private classes, I have come up with an even clearer implementation. I am sharing a sample implementation of the changes I have made in a personal experimental project. For example, by creating and registering a |
Describe the bug
I would like to deserialize a data structure which contains a serialized ClosedRage field.
To Reproduce
Run this test case:
Expected behavior
The test case should succeed and not to fail with:
Versions
Kotlin: 1.7.22
Jackson-module-kotlin: 2.14.2
Jackson-databind: 2.14.2
The text was updated successfully, but these errors were encountered: