Add another JSON example

JSON generation can be a bit tricky, another example might help
This commit is contained in:
Federico Ceratto
2016-05-05 22:02:48 +01:00
parent c876b304ba
commit 36be28aa47

View File

@@ -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