Add another JSON example
JSON generation can be a bit tricky, another example might help
This commit is contained in:
parent
c876b304ba
commit
36be28aa47
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,10 @@
|
||||||
## "age": herAge
|
## "age": herAge
|
||||||
## }
|
## }
|
||||||
## ]
|
## ]
|
||||||
|
##
|
||||||
|
## var j2 = %* {"name": "Isaac", "books": ["Robot Dreams"]}
|
||||||
|
## j2["details"] = %* {"age":35, "pi":3.1415}
|
||||||
|
## echo j2
|
||||||
|
|
||||||
import
|
import
|
||||||
hashes, tables, strutils, lexbase, streams, unicode, macros
|
hashes, tables, strutils, lexbase, streams, unicode, macros
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue