Member group
ToJsonString
Declaring type: JsonValue
Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonValue.rvn
Overloads / Variants
ToJsonString
func ToJsonString() -> Result<string, JsonError>
Source file: JsonValue.rvn
Converts this node to compact JSON text, including JSON quoting and escaping for strings.
Return value
JSON text or a validation/quota error. This does not return an unquoted scalar display value.
ToJsonString
func ToJsonString(options: JsonSerializerOptions) -> Result<string, JsonError>
Source file: JsonValue.rvn
Converts this node to JSON text using the selected formatting.
Parameters
| Name | Type | Description |
|---|---|---|
options |
JsonSerializerOptions | Formatting options; WriteIndented enables two-space indentation and LF newlines. |
Return value
JSON text or a validation/quota error, including when formatting exceeds the output byte limit.