Sets a named property on the JSON object to Null.

This viper method also supports the extension viper syntax.


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

Extension Viper Syntax

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


Name Data Type Description
name String The name of the property.
value Any The value.
jsonValue String JSON string representation of the value. Will be parsed to determine the JSON type
type Enum Type to which the jsonValue will be converted.
Enum values:
  • String
    Character string
  • Number
    Number (float or integer)
  • Object
    Object with nested properties
  • Array
    Array of nested JSON objects
  • Boolean
  • Null
    Empty value

Return Value


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.