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:
360
360
- ``name``: The driver serializes the value as a string.
361
361
362
362
- ``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.
365
365
366
366
- ``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.
368
369
369
370
.. literalinclude:: /examples/generated/KotlinXSerializationTest.snippet.datetime-data-class.kt
370
371
: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:
41
41
:ref:`kotlin-datetime-serialization` section of the {+language+}
42
42
Serialization guide.
43
43
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
+
44
50
.. _kotlin-coroutine-version-5.1.3:
45
51
46
52
What's New in 5.1.3
You can’t perform that action at this time.
0 commit comments