File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -815,7 +815,7 @@ All the previous approaches to specifying custom serialization strategies were _
815
815
fully defined at compile-time. The exception was the [Passing a serializer manually](#passing-a-serializer-manually)
816
816
approach, but it worked only on a top-level object. You might need to change the serialization
817
817
strategy for objects deep in the serialized object tree at run-time, with the strategy being selected in a context-dependent way.
818
- For example, you might want to represent `java.util.Date` in JSON format as an ISO 6801 string or as a long integer
818
+ For example, you might want to represent `java.util.Date` in JSON format as an ISO 8601 string or as a long integer
819
819
depending on a version of a protocol you are serializing data for. This is called _contextual_ serialization, and it
820
820
is supported by a built-in [ContextualSerializer] class. Usually we don' t have to use this serializer class explicitly —there
821
821
is the [Contextual ] annotation providing a shortcut to
@@ -933,7 +933,7 @@ object ProjectSerializer
933
933
```
934
934
935
935
You must bind this serializer to a class using one of the approaches explained in this chapter. We 'll
936
- follow the [Passing a serializer manually](#passing- a- serializer- manually) appraoch for this example.
936
+ follow the [Passing a serializer manually](#passing- a- serializer- manually) approach for this example.
937
937
938
938
```kotlin
939
939
fun main () {
You can’t perform that action at this time.
0 commit comments