cleanup, docs
This commit is contained in:
@@ -8,6 +8,7 @@ t : DValue object to be serialized
|
||||
return value : string containing the JSON result
|
||||
|
||||
:see
|
||||
>string
|
||||
>types
|
||||
json_decode
|
||||
0_DValue
|
||||
@@ -21,7 +22,8 @@ When passed a `String`, `json_encode()` returns a quoted and escaped JSON string
|
||||
|
||||
When passed a `DValue`, scalar values are serialized directly and nested map values are emitted as JSON objects.
|
||||
|
||||
Related:
|
||||
|
||||
- PHP: `json_encode()`
|
||||
- JavaScript / Node.js: `JSON.stringify()`
|
||||
:example
|
||||
DValue value;
|
||||
value["name"] = "Ada";
|
||||
print(json_encode(value), "\n");
|
||||
|
||||
Reference in New Issue
Block a user