Merge pull request #4311 from FedericoCeratto/patch-10
Add value creation/update to the usage example
This commit is contained in:
commit
aadc154c95
1 changed files with 2 additions and 1 deletions
|
|
@ -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)
|
||||||
##
|
##
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue