JsonReaderState
Definition
Namespace: Corvus.Text.Json
Assembly: Corvus.Text.Json.dll
Source: JsonReaderState.cs
Defines an opaque type that holds and saves all the relevant state information which must be provided to the Utf8JsonReader to continue reading after processing incomplete data. This type is required to support reentrancy when reading incomplete data, and to continue reading once more data is available. Unlike the Utf8JsonReader, which is a ref struct, this type can survive across async/await boundaries and hence this type is required to provide support for reading in more data asynchronously before continuing with a new instance of the Utf8JsonReader.
public readonly struct JsonReaderState
Constructors
| Constructor | Description |
|---|---|
| JsonReaderState(JsonReaderOptions) | Constructs a new JsonReaderState instance. |
Properties
| Property | Type | Description |
|---|---|---|
| Options | JsonReaderOptions |
Gets the custom behavior when reading JSON using the Utf8JsonReader that may deviate from strict adherence to the JSON specification, which is the... |
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue