You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/serial.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,9 @@
2
2
3
3
The Serial facility allows serializing and deserializing complex types into data formats like JSON and XML. YAML and TOML are mostly compatible with JSON.
4
4
5
-
> **Note**: The compiler generates efficient code for serialization and deserialization.
5
+
> **Note**: The compiler generates efficient code for serialization and deserialization as `serial::fromJSON`, `serial::toJSON`, `serial::fromXML` and `serial::toXML` overrides.
6
+
>
7
+
> You may call these back from custom (de-)serializer implementations.
6
8
7
9
This facility requires annotatating classes with either the `Serial` or `XS` meta-data, otherwise a TypeError is thrown while serializing or deserializing.
0 commit comments