JsonPathResult Class
Represents the result of evaluating a JSONPath expression against a JSON value. Contains the ordered list of matched nodes.
public sealed class JsonPathResult : IEnumerable<JsonPathMatch>, IReadOnlyCollection<JsonPathMatch>, IReadOnlyList<JsonPathMatch>, IEnumerable- Implements
Properties
| Name | Description |
|---|---|
| Count | Gets the number of elements in the collection. |
Count
JsonPathResult.csIndexers
| Name | Description |
|---|---|
| this[int] | Gets the element at the specified index in the read-only list. |
this[int]
JsonPathResult.csGets the element at the specified index in the read-only list.
public JsonPathMatch this[int index] { get; }Methods
| Name | Description |
|---|---|
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| System.Collections.IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
| ToJsonArray() | Returns the values of all matched nodes as a JsonArray. |
GetEnumerator()
JsonPathResult.csReturns an enumerator that iterates through the collection.
public IEnumerator<JsonPathMatch> GetEnumerator()Returns
IEnumerator<JsonPathMatch> An enumerator that can be used to iterate through the collection.
System.Collections.IEnumerable.GetEnumerator()
JsonPathResult.csReturns an enumerator that iterates through a collection.
IEnumerator IEnumerable.GetEnumerator()Returns
IEnumerator An IEnumerator object that can be used to iterate through the collection.