IMutableJsonDocument.GetArrayIndexElement Method
Definition
Namespace: Corvus.Text.Json.Internal
Assembly: Corvus.Text.Json.dll
Overloads
| Method | Description |
|---|---|
| GetArrayIndexElement(int, int) | Gets the array element at the specified index as a mutable JSON element. |
| GetArrayIndexElement(int, int, ref IMutableJsonDocument, ref int) | Gets the element at the specified array index within the current index. |
GetArrayIndexElement(int, int)
Source: IMutableJsonDocument.cs
Gets the array element at the specified index as a mutable JSON element.
public abstract JsonElement.Mutable GetArrayIndexElement(int currentIndex, int arrayIndex)
Parameters
| Name | Type | Description |
|---|---|---|
currentIndex |
int |
The current index in the document. |
arrayIndex |
int |
The index within the array. |
Returns
The mutable JSON element at the specified array index.
Implements
IJsonDocument.GetArrayIndexElement
IJsonDocument.GetArrayIndexElement
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
GetArrayIndexElement(int, int, ref IMutableJsonDocument, ref int)
Source: IMutableJsonDocument.cs
Gets the element at the specified array index within the current index.
public abstract void GetArrayIndexElement(int currentIndex, int arrayIndex, ref IMutableJsonDocument parentDocument, ref int parentDocumentIndex)
Parameters
| Name | Type | Description |
|---|---|---|
currentIndex |
int |
The current index. |
arrayIndex |
int |
The array index. |
parentDocument |
ref IMutableJsonDocument |
Produces the parent document of the result. |
parentDocumentIndex |
ref int |
Produces the parent document index. |
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