Gets the typed value of a named property from the JSON object. If the typed value is a string ampersands will be encoded for use on the client.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
any this.getencodedvalue(string name)

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
any page.<id>.getencodedvalue(string name)

Parameters

Name Data Type Description
name String The name of the property. Use the . operator to query within nested objects.

Return Value

Data Type Description
Any The typed value of the property, encoding ampersands if it's a string

Used in

Macro Description
Json The JSON macro can parse a JSON string. It exposes properties to query the resulting object and methods to modify it.

Expand image Example

SXML