Syntax

AddBoolean(name, bool)

Description

Use this method to add a Boolean to the JSON Object.

Parameters

Name Description
name Specifies the name of the boolean that needs to be added as a string.
bool Specifies the boolean to add to the JSON Object as a Boolean data type.

Returns

None.

Example

Local boolean &bIsBool = True;
   
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddBoolean("MyBool", &bIsBool);