Is kotlinx serialization the right tool for a form...
# serialization
z
Is kotlinx serialization the right tool for a format that supports a large number of
T
types, but not an arbitrary amount? If an unsupported type is specified when calling
decodeFromString
, should a
SerializationException
be thrown?
As an example, imagine a format that supports only integers and booleans, not floats or strings.
g
You can have a custom serializer and limit yourself how it should work, but I'm not sure I get your point. A recent discussion could help you: https://kotlinlang.slack.com/archives/C7A1U5PTM/p1718924987750389?thread_ts=1718799542.134009&cid=C7A1U5PTM