Docs Menu
Docs Home
/ / /
Kotlin Sync Driver

Data Formats

The Kotlin Sync driver supports the kotlinx.serialization library for serializing and deserializing Kotlin objects. You can use this library to convert between MongoDB documents and different data formats in your application. To learn more about serialization, see the Data Serialization guide.

As an alternative to using Kotlin serialization, you can define and implement custom Codec types to support encoding and decoding of your Kotlin objects. To learn more, see the Encode Data with Type Codecs guide.

You can use several types of specialized document data formats in your application. To learn how to work with these data formats, see the following sections:

Back

Builders & Data Classes

On this page