refactor: rename DTree to DValue

This commit is contained in:
udo
2026-06-12 11:05:52 +00:00
parent 941f5aea08
commit 7066da3cde
157 changed files with 1203 additions and 1074 deletions
+5 -5
View File
@@ -1,25 +1,25 @@
:sig
String json_encode(String s)
String json_encode(DTree t)
String json_encode(DValue t)
:params
s : string to encode as a JSON string literal
t : DTree object to be serialized
t : DValue object to be serialized
return value : string containing the JSON result
:see
>types
json_decode
0_DTree
0_DValue
String
html_escape
:content
Serializes either a `String` or a `DTree` into JSON notation.
Serializes either a `String` or a `DValue` into JSON notation.
When passed a `String`, `json_encode()` returns a quoted and escaped JSON string literal.
When passed a `DTree`, scalar values are serialized directly and nested map values are emitted as JSON objects.
When passed a `DValue`, scalar values are serialized directly and nested map values are emitted as JSON objects.
Related: