-
Notifications
You must be signed in to change notification settings - Fork 110
How to de/serialize types? #36
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
Comments
I'd recommend using kotlinx.serialization. |
Yeah. I'm using kotlinx.serialization, and I found a way to de/serialize the mentioned types by using custom serializers. |
hi @wellingtoncosta, can you share your custom serializer for DateTime? |
@qrezet I wrote this custom de/serializer in a private project of my previous company. I'll try to get this piece of code. |
@wellingtoncosta Thanks in advance! |
@dkhalanskyjb Awesome! Thanks for the update! |
Hi @dkhalanskyjb, if I'm not mistaken, this has already been part of the latest Ktor release right? 1.5.3? |
Hi @qrezet, not sure what you mean, Ktor is not even integrated with the datetime library. It does have support for serialization but, as far as I know, does not provide any serializers of its own. Also, the PR was merged, so the serializers for kotlinx-datetime are in the main branch now! |
I trying to use this library, and I would like to know how to de/serialize types e.g.
LocalDate
,LocalDateTime
.The text was updated successfully, but these errors were encountered: