Skip to content

Commit d786819

Browse files
committed
upd
1 parent bcfc79b commit d786819

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/serial.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
The Serial facility allows serializing and deserializing complex types into data formats like JSON and XML. YAML and TOML are mostly compatible with JSON.
44

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.
68
79
This facility requires annotatating classes with either the `Serial` or `XS` meta-data, otherwise a TypeError is thrown while serializing or deserializing.
810

0 commit comments

Comments
 (0)