diff --git a/source/fundamentals/data-formats/serialization.txt b/source/fundamentals/data-formats/serialization.txt index 15bb20d2..5ce30648 100644 --- a/source/fundamentals/data-formats/serialization.txt +++ b/source/fundamentals/data-formats/serialization.txt @@ -20,7 +20,7 @@ Kotlin Serialization Overview -------- -The Kotlin driver supports the ``kotlinx.serialization`` library for +The {+driver-short+} supports the ``kotlinx.serialization`` library for serializing and deserializing Kotlin objects. The driver provides an efficient ``Bson`` serializer that you can use with @@ -41,7 +41,7 @@ defaults, encode nulls, and define class discriminators. You might choose Kotlin serialization if you are already familiar with the framework or if you prefer to use an idiomatic Kotlin approach. -Although you can use the Kotlin driver with the Kotlin serialization ``Json`` +Although you can use the {+driver-short+} with the Kotlin serialization ``Json`` library, the ``Json`` serializer does *not* directly support BSON value types such as ``ObjectId``. You must provide a custom serializer that can handle the conversion between BSON and JSON. @@ -49,7 +49,7 @@ conversion between BSON and JSON. Supported Types ~~~~~~~~~~~~~~~ -The Kotlin driver supports: +The {+driver-short+} supports: - All Kotlin types that are supported by the Kotlin serialization library - All available :manual:`BSON types ` @@ -57,7 +57,7 @@ The Kotlin driver supports: Add Kotlin Serialization to Your Project ---------------------------------------- -Support for serialization in the {+river-short+} depends on the official `Kotlin +Support for serialization in the {+driver-short+} depends on the official `Kotlin serialization library `__. Select from the following tabs to see how to add the serialization @@ -105,7 +105,7 @@ To declare a class as serializable, annotate your Kotlin data classes with the ``@Serializable`` annotation from the Kotlin serialization framework. You can use your data classes in your code as normal after you mark them as serializable. -The Kotlin driver and the Kotlin serialization framework will handle the +The {+driver-short+} and the Kotlin serialization framework handle the BSON serialization and deserialization. This example shows a simple data class annotated with the following: