aboutsummaryrefslogtreecommitdiff
path: root/lib/json/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-01 17:37:24 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-01 17:37:24 -0400
commit12345a85d9c7d7a56ddf323247a4bdf347021b73 (patch)
tree93bafb42c1ec2c22cc2858936034901c39cbca82 /lib/json/README.md
parentc778c8822f1c8acf981e26f7b860a384c94cff6f (diff)
parentadc2d81b5683e611c5f3289be6157d4519a60632 (diff)
Merge branch 'main' into optional-list-indexing
Diffstat (limited to 'lib/json/README.md')
-rw-r--r--lib/json/README.md18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/json/README.md b/lib/json/README.md
deleted file mode 100644
index 33e2101a..00000000
--- a/lib/json/README.md
+++ /dev/null
@@ -1,18 +0,0 @@
-# JSON
-
-This is a library for encoding/decoding JSON values.
-
-## Usage
-
-```tomo
->> 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())")
-
-when JSON.parse("[1, null, true]") is Success(obj)
- >> obj
-is Failure(msg)
- fail("Failed to parse JSON: $msg")
-```