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
+3 -3
View File
@@ -1,5 +1,5 @@
:sig
String DTree::to_json(char quote_char = '"') const
String DValue::to_json(char quote_char = '"') const
:params
quote_char : quote character used around string output
@@ -7,13 +7,13 @@ return value : the scalar as a single JSON token
:see
>types
0_DTree
0_DValue
json_encode
json_decode
to_string
:content
Renders a single scalar `DTree` value as a JSON token. This is a read accessor: it is `const`, never creates or modifies nodes, and dereferences internal references automatically.
Renders a single scalar `DValue` value as a JSON token. This is a read accessor: it is `const`, never creates or modifies nodes, and dereferences internal references automatically.
Strings are escaped and quoted, numbers render as numeric literals, and booleans render as `true` / `false`.