Syntax
AddArray(name, array)
Description
Use this method to add an Array object to the JSON Object.
Parameters
Name | Description |
---|---|
name | Specifies the name of the array that needs to be added as a string. |
array | Specifies the array to add to the JSON Object as an Array object. |
Returns
None.
Example
Local array of any &aaMyArray;
&aaMyArray = CreateArrayAny("test", True, 6, Null);
Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
&oObject.AddArray("MyArray", &aaMyArray);