Gets the type of a named property from the JSON object.

This viper method also supports the extension viper syntax.

Syntax

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

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
string page.<id>.getjsontypename(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
String The type name of the property, or Null if the property does not exist

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