Good day. I am working with an API that varies ho...
# serialization
t
Good day. I am working with an API that varies how dates are encoded. So I would like to do something like this:
Copy code
@DateSerializer(format="MM-dd-YYYY")
var date1: Date
Is this possible with Kotlin Serialization (multiplatform)? Any examples anybody might be able to throw my way? Thank you!
t
Yes, that is helpful. I actually did a custom serializer for a Boolean type. The part I am unsure about is how to pass a parameter to this custom serializer…