aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/json/README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/json/README.md b/lib/json/README.md
index eb0d6c88..33e2101a 100644
--- a/lib/json/README.md
+++ b/lib/json/README.md
@@ -5,7 +5,9 @@ This is a library for encoding/decoding JSON values.
## Usage
```tomo
-j := JSON.Object({"key": Number(1.5), "key": Array([Boolean(yes), Null])})
+>> j := JSON({"key1"=123, "key2"=[yes, {"ok"="inner"}, JSON.Null]})
+= JSON.Object({"key1"=Number(123), "key2"=Array([Boolean(yes), Object({"ok"=String("inner")}), Null])})
+
say("$(j.encode())")
say("$(j.pretty_print())")