Add [un]marshalling examples
This commit is contained in:
parent
9ca3ae14ab
commit
80744fe4f7
1 changed files with 6 additions and 0 deletions
|
|
@ -29,6 +29,12 @@
|
||||||
## a = b
|
## a = b
|
||||||
## echo($$a[]) # produces "{}", not "{f: 0}"
|
## echo($$a[]) # produces "{}", not "{f: 0}"
|
||||||
##
|
##
|
||||||
|
## # unmarshal
|
||||||
|
## let c = to[B]("""{"f": 2}""")
|
||||||
|
##
|
||||||
|
## # marshal
|
||||||
|
## let s = $$c
|
||||||
|
|
||||||
## **Note**: The ``to`` and ``$$`` operations are available at compile-time!
|
## **Note**: The ``to`` and ``$$`` operations are available at compile-time!
|
||||||
|
|
||||||
import streams, typeinfo, json, intsets, tables, unicode
|
import streams, typeinfo, json, intsets, tables, unicode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue