Gets the string representation of the JSON object at the given position.

This viper method also supports the extension viper syntax.

Syntax

Smartsite SXML CopyCode image Copy Code
string this.getbyposition(integer position)
string this.getbyposition(string name, integer position)

Extension Viper Syntax

Smartsite SXML CopyCode image Copy Code
string page.<id>.getbyposition(integer position)
string page.<id>.getbyposition(string name, integer position)

Parameters

Name Data Type Description
position Integer The position of the child property.
name String The name of the parent 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