JObjectExtension.GetObject method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Json.Extensions |
---|---|
Assembly | Skybrud.Essentials.dll |
GetObject(JObject, string)
Static
Gets an object from a token matching the specified path
.
public static JObject GetObject(JObject obj, string path)
GetObject<T>(JObject, string)
Static
Gets an object from a token matching the specified path
.
public static T GetObject<T>(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>)
Static
Gets an object from a token matching the specified path
.
public static T GetObject<T>(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.