DeserializeNode
Declaring type: JsonSerializer
Module: System.Data.Json
Assembly: System.Data.dll
Source file: JsonSerializer.rvn
Overloads / Variants
DeserializeNode
static func DeserializeNode(input: InputStream, options: JsonDocumentOptions) -> Task<Result<JsonValue, JsonError>>
Source file: JsonSerializer.rvn
Reads JSON to EOF with selected syntax and depth options.
Parameters
| Name | Type | Description |
|---|---|---|
input |
InputStream | Borrowed UTF-8 stream, left open on success and failure. |
options |
JsonDocumentOptions | Copied before reading. Invalid options consume no input. |
Return value
Task<Result<JsonValue, JsonError>>
An owned node or options, read, syntax or depth error. Text is buffered in full; this is not an incremental JSON reader.
DeserializeNode
static func DeserializeNode(input: InputStream) -> Task<Result<JsonValue, JsonError>>
Source file: JsonSerializer.rvn
Reads strict JSON to EOF, leaving the input stream open.
Parameters
| Name | Type | Description |
|---|---|---|
input |
InputStream |
Return value
Task<Result<JsonValue, JsonError>>
DeserializeNode
static func DeserializeNode(text: string, options: JsonDocumentOptions) -> Result<JsonValue, JsonError>
Source file: JsonSerializer.rvn
Parses text using document syntax options.
Parameters
| Name | Type | Description |
|---|---|---|
text |
String | The complete JSON document. |
options |
JsonDocumentOptions | Comment, trailing comma and depth policy, copied for this operation. |
Return value
An owned node or an options, syntax or depth error. Allocation follows runtime budgets; no fixed document byte or value count quota is imposed.
DeserializeNode
static func DeserializeNode(text: string) -> Result<JsonValue, JsonError>
Source file: JsonSerializer.rvn
Parses strict JSON with a maximum container depth of 64.
Parameters
| Name | Type | Description |
|---|---|---|
text |
String |
Return value
DeserializeNode
static func DeserializeNode(utf8: ReadOnlySlice<byte>, options: JsonDocumentOptions) -> Result<JsonValue, JsonError>
Source file: JsonSerializer.rvn
Parses borrowed UTF-8 using document syntax options.
Parameters
| Name | Type | Description |
|---|---|---|
utf8 |
ReadOnlySlice<Byte> | Complete document, borrowed only during this call. |
options |
JsonDocumentOptions | Syntax and depth policy. Invalid options precede UTF-8 validation. |
Return value
An owned node or an error. Complete UTF-8 validation precedes syntax parsing.
DeserializeNode
static func DeserializeNode(utf8: ReadOnlySlice<byte>) -> Result<JsonValue, JsonError>
Source file: JsonSerializer.rvn
Parses a borrowed UTF-8 document with strict syntax and maximum depth 64.
Parameters
| Name | Type | Description |
|---|---|---|
utf8 |
ReadOnlySlice<Byte> | The complete document, borrowed only during this call. |
Return value
Independently owned nodes or a UTF-8, syntax or depth error.