Gets the string representation of the JSON object.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
string this.get()
string this.get(boolean indent)
string this.get(string name)
string this.get(string name, boolean indent)

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
string page.<id>.get()
string page.<id>.get(boolean indent)
string page.<id>.get(string name)
string page.<id>.get(string name, boolean indent)

Parameters

Name Data Type Description
indent Boolean Indents the output for readability if set to true.
name String The name of the property. Use the . operator to query within nested objects.

Return Value

Data Type Description
String The JSON string representation of the object

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