mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-16 06:00:57 +00:00
Add another JSON example
JSON generation can be a bit tricky, another example might help
This commit is contained in:
@@ -49,6 +49,10 @@
|
||||
## "age": herAge
|
||||
## }
|
||||
## ]
|
||||
##
|
||||
## var j2 = %* {"name": "Isaac", "books": ["Robot Dreams"]}
|
||||
## j2["details"] = %* {"age":35, "pi":3.1415}
|
||||
## echo j2
|
||||
|
||||
import
|
||||
hashes, tables, strutils, lexbase, streams, unicode, macros
|
||||
|
||||
Reference in New Issue
Block a user