Syntax

AddString(name, value)

Description

Use this method to add a String value to the JSON Object.

Parameters

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

Returns

None.

Example

Local PSM_JSON:Object &oObject = create PSM_JSON:Object();
   
&oObject.AddString("MyString", "hello");