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
commit 0fe414150e

View file

@ -20,7 +20,8 @@
## let ## let
## small_json = """{"test": 1.3, "key2": true}""" ## small_json = """{"test": 1.3, "key2": true}"""
## jobj = parseJson(small_json) ## 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["test"].fnum)
## echo($jobj["key2"].bval) ## echo($jobj["key2"].bval)
## ##