

Platform-specific artifacts are handled automatically you don't need to add them manually. :kotlinx-serialization-cbor provides CBOR serialization.

:kotlinx-serialization-json provides JSON serialization for Kotlin projects. Their names start with kotlinx-serialization- and have suffixes that reflect the serialization format. You can find the complete list of supported serialization formats below.Īll Kotlin serialization libraries belong to the : group. rialization provides sets of libraries for all supported platforms – JVM, JavaScript, Native – and for various serialization formats – JSON, CBOR, protocol buffers, and others. It consists of two main parts: the Gradle plugin – .serialization and the runtime libraries. In Kotlin, data serialization tools are available in a separate component, rialization. Being language-neutral and platform-neutral, they enable data exchange between systems written in any modern language. Some data serialization formats, such as JSON and protocol buffers are particularly common. Together they are an essential part of most applications that exchange data with third parties. In turn, deserialization is the opposite process of reading data from an external source and converting it into a runtime object. Serialization is the process of converting data used by an application to a format that can be transferred over a network or stored in a database or a file.
