Syntax

AddInteger(name, value)

Description

Use this method to add an Integer to the JSON Object.

Parameters

Name Description
name Specifies the name of the integer that needs to be added as a string.
value Specifies the integer to add to the JSON Object as an Integer data type.

Returns

None.

Example

Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddInteger("MyInt", 2);