cleanup, docs
This commit is contained in:
@@ -29,4 +29,5 @@ Current runtime behavior:
|
||||
- JSON numbers currently deserialize as string-valued `DValue` nodes, so typed conversions such as `to_f64()` and `to_u64()` are the normal way to read numeric content.
|
||||
|
||||
:example
|
||||
print("json_decode example\n");
|
||||
DValue data = json_decode("{\"name\": \"Ada\", \"tags\": [\"x\", \"y\"]}");
|
||||
print(data["name"].to_string(), " has ", data["tags"].keys().size(), " tags\n");
|
||||
|
||||
Reference in New Issue
Block a user