File tree Expand file tree Collapse file tree 3 files changed +13
-3
lines changed
fundamentals/data-formats Expand file tree Collapse file tree 3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -360,11 +360,12 @@ the ``Appointment`` data class with the following behavior:
360360- ``name``: The driver serializes the value as a string.
361361
362362- ``date``: The driver uses the ``kotlinx-datetime`` serializer
363- because the field has the ``@Contextual`` annotation. So,
364- ``LocalDate`` values are serialized as BSON dates.
363+ because the field has the ``@Contextual`` annotation. ``LocalDate``
364+ values are serialized as BSON dates.
365365
366366- ``time``: The driver serializes the value as a string because it does
367- not have the ``@Contextual`` annotation.
367+ not have the ``@Contextual`` annotation. This is the default
368+ serialization behavior for ``LocalTime`` values.
368369
369370.. literalinclude:: /examples/generated/KotlinXSerializationTest.snippet.datetime-data-class.kt
370371 :language: kotlin
Original file line number Diff line number Diff line change 1+ [[facets ]]
2+ category = " genre"
3+ value = " tutorial"
Original file line number Diff line number Diff line change @@ -41,6 +41,12 @@ improvements, and fixes:
4141 :ref:`kotlin-datetime-serialization` section of the {+language+}
4242 Serialization guide.
4343
44+ - Supports serialization of `JsonElement
45+ <{+kotlin-docs+}/api/kotlinx.serialization/kotlinx-serialization-json/kotlinx.serialization.json/-json-element/>`__
46+ values. To work with the ``JsonElement`` type, you must add the
47+ ``kotlinx-serialization-json`` library as a dependency in your
48+ application.
49+
4450.. _kotlin-coroutine-version-5.1.3:
4551
4652What's New in 5.1.3
You can’t perform that action at this time.
0 commit comments