Hi! When writing a custom serializer, what is the ...
# serialization
c
Hi! When writing a custom serializer, what is the best practice to support multiple formats? For example JSON and CBOR?
b
KSerializer<T>
are format-agnostic, aren't they?
c
I was asking because I am getting
This serializer can be used only with Json format.Expected Decoder to be JsonDecoder, got class CborReader null
error. Maybe my implementation is wrong.
z
Do you want a single KSerializer to call either json or cbor encodeX methods, or both at the same time?