Click or drag to resize

DesktopUtilsgetJSONT Method

Generic function to retrieve a value identified by "key" from "jsonObject".

"defaultValue" is returned if no match is found.

The JSON object to retrieve a value from.The key to search for.The value to return if no key match is found.

Namespace:  Openfin.Desktop
Assembly:  OpenfinDesktop (in OpenfinDesktop.dll) Version: 16.7.0
Syntax
C#
public static T getJSON<T>(
	JObject jsonObject,
	string key,
	T defaultValue
)

Parameters

jsonObject
Type: JObject

[Missing <param name="jsonObject"/> documentation for "M:Openfin.Desktop.DesktopUtils.getJSON``1(Newtonsoft.Json.Linq.JObject,System.String,``0)"]

key
Type: SystemString

[Missing <param name="key"/> documentation for "M:Openfin.Desktop.DesktopUtils.getJSON``1(Newtonsoft.Json.Linq.JObject,System.String,``0)"]

defaultValue
Type: T

[Missing <param name="defaultValue"/> documentation for "M:Openfin.Desktop.DesktopUtils.getJSON``1(Newtonsoft.Json.Linq.JObject,System.String,``0)"]

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Openfin.Desktop.DesktopUtils.getJSON``1(Newtonsoft.Json.Linq.JObject,System.String,``0)"]

Return Value

Type: T

[Missing <returns> documentation for "M:Openfin.Desktop.DesktopUtils.getJSON``1(Newtonsoft.Json.Linq.JObject,System.String,``0)"]

See Also