From 0fe414150eff927722e9af727ed3778a2e913d07 Mon Sep 17 00:00:00 2001 From: Federico Ceratto Date: Sat, 11 Jun 2016 15:52:36 +0100 Subject: [PATCH] Add value creation/update to the usage example --- lib/pure/json.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pure/json.nim b/lib/pure/json.nim index cea7a1e90e..e99a351a18 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) ##