kotlinx.serialization
kotlinx.serialization copied to clipboard
Kotlin multiplatform / multi-format serialization
**What is your use-case and why do you need this feature?** I want to serialize an object graph with repeated object references. This graph (and any updates to its structure)...
**What is your use-case and why do you need this feature?** Protobuf JSON format specifies, > Proto3 JSON parsers are required to accept both the converted lowerCamelCase name and the...
## Summary Currently, there is no API which reads or writes directly from `stream` in protobuf format. Such API makes sense for frameworks, which helps them to avoid decoding streams...
JVM works since 1.8.0; Native should work with 2.0.
This is an implementation for #2199 and #1865. This implementation just modifies the `subclass` method in the builder. It does (internally) expose the registered children in `SealedSerializer`. It is not...
**What is your use-case and why do you need this feature?** [The @SerialName is a bit buried in the documentation](https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/basic-serialization.md#serial-field-names) It took a few minutes for me to find that....
Currently, the general-purpose (i.e. not JSON-specific) polymorphism is supported only by subclassing `AbstractPolymorphicSerializer` with `internal` constructor. The rationale is basically the same as in #2459: the library has to implement...
It is good enough, solves the problem, is unambiguous and required for the implementation of any non-delegating `KSerializer`
In `kotlinx.datetime` we need a hand-rolled (because the serialization module is shipped separately) external serializer for enums (e.g. `Month`). The problem is that we either have to access internal API...
**Describe the bug** I have a class using a self-recursive generic bound as follows, and elsewhere in my code I would like to serialize a usage of this class where...