GetJSONValue Method

Retrieves data from the Newlook control as a JSON formatted string.

Client Support

This method currently only applies to the Smartframe Newlook Control.

Version Support

Introduced in Version 11.0.2

Syntax

object.GetJSONValue(expression[, maxDepth])

The GetJSONValue method syntax has these parameters:

Part

Description

expression

(string) An expression that specifies the Newlook object to return (i.e. "App.FunctionKeys").

maxDepth

(integer, optional) A value which specifies the maximum depth of JSON tree to retrieve (default: 10).

Use

This method is an alternative to the GetValue method. It can be used to retrieve nested collections in a single call. JSON also explicitly supports null, therefore if the value you are requesting is not initialized (for example "App.MasterForm"), this method will return null instead of generating a runtime error.

Returns

The GetJSONValue method returns a string in JSON format:

{

property1: "text",

property2: false,

property3: [ "one", 2, 3.00 ]

}

Applies To

Smartframe Newlook Control

See Also

Smartframe Newlook Control API

Customizing Smartframetemplates


© 2004-2021 looksoftware. All rights reserved.