Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rustagir committed Jan 30, 2024
1 parent 1597cf6 commit a8e3203
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/fundamentals/data-formats/serialization.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -41,23 +41,23 @@ 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.

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 </reference/bson-types>`

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 <https://github.com/Kotlin/kotlinx.serialization>`__.

Select from the following tabs to see how to add the serialization
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a8e3203

Please sign in to comment.