insidersite.blogg.se

Serialize
Serialize





serialize

There are also community-maintained libraries that support more serialization formats, such as YAML or Apache Avro. Note that all libraries except JSON serialization ( kotlinx-serialization-json) are Experimental, which means their API can be changed without notice. HOCON: kotlinx-serialization-hocon (only on JVM) Properties: kotlinx-serialization-properties Protocol buffers: kotlinx-serialization-protobuf rialization includes libraries for various serialization formats: Check out the releases on GitHub to find the latest versions. Note that the rialization libraries use their own versioning structure, which doesn't match Kotlin's versioning. Use the same dependencies in JVM, JS, Native, and multiplatform projects. Platform-specific artifacts are handled automatically you don't need to add them manually.

serialize

: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. Gradle adds compiler plugins to your projects as compiler arguments. The second plugin is designed for working with the kotlin-compiler-embeddable artifact, which is the default option for scripting artifacts. It consists of several parts: the .serialization Gradle plugin, runtime libraries, and compiler plugins.Ĭompiler plugins, kotlinx-serialization-compiler-plugin and kotlinx-serialization-compiler-plugin-embeddable, are published directly to Maven Central. 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.

serialize

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.







Serialize