diff options
-rw-r--r-- | lib/pure/json.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim index cea7a1e90..e99a351a1 100644 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -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) ## |