JObjectExtension.GetArrayItems method
Namespace | Skybrud.Essentials.Json.Extensions |
---|---|
Assembly | Skybrud.Essentials.dll |
GetArrayItems(JObject, string)
Gets the items of the JArray from the token matching the specfied path
.
public static JToken[] GetArrayItems(JObject obj, string path)
Parameters
GetArrayItems<T>(JObject, string)
Gets the items of the JArray from the token matching the specfied path
.
public static T[] GetArrayItems<T>(JObject obj, string path)
Type Parameters
T
Parameters
Returns
T
An array of T
. If the a matching token isn't found, an empty array will
still be returned.
GetArrayItems<T>(JObject, string, Func<T, TResult>)
Gets the items of the JArray from the token matching the specfied path
.
public static T[] GetArrayItems<T>(JObject obj, string path, Func<T, TResult> callback)
Type Parameters
T
Parameters
A callback function used for parsing or converting the token value.
Returns
T
An array of T
. If the a matching token isn't found, an empty array will
still be returned.
GetArrayItems<T>(JObject, string, Func<T, TResult>)
Gets the items of the JArray from the token matching the specfied path
.
public static T[] GetArrayItems<T>(JObject obj, string path, Func<T, TResult> callback)
Type Parameters
T
Parameters
A callback function used for parsing or converting the token value.
Returns
T
An array of T
. If the a matching token isn't found, an empty array will
still be returned.
GetArrayItems<TKey,TValue>(JObject, string, Func<T, TResult>)
Gets the items of the JArray from the token matching the specfied path
.
public static TValue[] GetArrayItems<TKey,TValue>(JObject obj, string path, Func<T, TResult> callback)
Type Parameters
TKey
TValue
Parameters
A callback function used for parsing or converting the token value.
Returns
TValue
An array of TValue
. If the a matching token isn't found, an empty
array will still be returned.