Merge pull request #4311 from FedericoCeratto/patch-10

Add value creation/update to the usage example
This commit is contained in:
Dominik Picheta 2016-06-12 01:16:51 +01:00 • committed by GitHub
commit aadc154c95

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)
## ##