Object serialization: Difference between revisions
Content added Content deleted
(→Insitux: inclusion) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 2,548: | Line 2,548: | ||
{{libheader|Wren-json}} |
{{libheader|Wren-json}} |
||
Currently, Wren's only facility for serializing objects is to use the above JSON module. Also this module can only 'stringify' objects of built-in types so we need to provide a suitable string representation for each user-defined class. |
Currently, Wren's only facility for serializing objects is to use the above JSON module. Also this module can only 'stringify' objects of built-in types so we need to provide a suitable string representation for each user-defined class. |
||
<syntaxhighlight lang=" |
<syntaxhighlight lang="wren">import "./json" for JSON |
||
import "io" for File, FileFlags |
import "io" for File, FileFlags |
||