Syntax
AddNumber(name, number)
Description
Use this method to add a Number value to the JSON Object.
Parameters
Name | Description |
---|---|
name | Specifies the name of the number that needs to be added as a string. |
number | Specifies the number to add to the JSON Object as a Number type. |
Returns
None.
Example
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
&oObject.AddNumber("MyNbr", 7);