IJsonDocument.GetUtf16JsonString Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Source: IJsonDocument.cs
GetUtf16JsonString(int, JsonTokenType)
Gets the UTF-16 JSON string value of the element at the specified index.
public abstract UnescapedUtf16JsonString GetUtf16JsonString(int index, JsonTokenType expectedType)
Parameters
| Name | Type | Description |
|---|---|---|
index |
int |
The index of the element. |
expectedType |
JsonTokenType |
The expected JSON token type. |
Returns
The UTF-16 JSON string value.
Remarks
You are permitted to pass None as the expectedType which will check both String and PropertyName as valid types.
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