mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-13 14:53:46 +00:00
Add value creation/update to the usage example
This commit is contained in:
@@ -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)
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user