Gets the number of properties on the outer JSON object.

This viper method also supports the extension viper syntax.

Syntax

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

Extension Viper Syntax

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

Parameters

Name Data Type Description
name String The name property.

Return Value

Data Type Description
Integer The number of properties on the outer JSON 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