JObjectExtensions.GetObject method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Json.Extensions |
---|---|
Assembly | Skybrud.Essentials.dll |
GetObject(JObject, string)
Extension method
Gets an object from a token matching the specified path
.
public static JObject GetObject(this JObject obj, string path)
GetObject<T>(JObject, string)
Extension method
Gets an object from a token matching the specified path
.
public static T GetObject<T>(this JObject obj, string path)
Type Parameters
T
Returns
T
An instance of T
, or the default value of T
if not
found.
GetObject<T>(JObject, string, Func<T, TResult>)
Extension method
Gets an object from a token matching the specified path
.
public static T GetObject<T>(this JObject obj, string path, Func<T, TResult> func)
Type Parameters
T
Parameters
obj
JObject
The parent object.
The delegate (callback method) used for parsing the object.
Returns
T
An instance of T
, or the default value of T
if not
found.