Syntax

SetObject(object)

Description

Use this method to set the object of the JSON Node.

Parameters

Name Description
object Specifies the object of the JSON Node as an Object.

Returns

None.

Example

Local object &oValue = %Request;
   
If Int(Rand() * 10) > 5 Then
    &oValue = CreateArrayAny("test", True, 6, Null);
End-If;
   
Local PSM_JSON:Node &oNode = create PSM_JSON:Node();
   
&oNode.SetObject(&oValue);