Add value creation/update to the usage example

This commit is contained in:
Federico Ceratto
2016-06-11 15:52:36 +01:00
committed by GitHub
parent c1a553a2a9
commit 0fe414150e

View File

@@ -20,7 +20,8 @@
## let
## small_json = """{"test": 1.3, "key2": true}"""
## jobj = parseJson(small_json)
## assert (jobj.kind == JObject)
## assert (jobj.kind == JObject)\
## jobj["test"] = newJFloat(0.7) # create or update
## echo($jobj["test"].fnum)
## echo($jobj["key2"].bval)
##