Language Reference Guide : 4. System Classes : JsonObject Class : AddMember Method
 
Share this page                  
AddMember Method
Adds a member (name/value pair) to the JsonObject.
This method has the following syntax:
integer = JsonObject.AddMember(name = varchar(256), value = JsonValue)
name
Specifies the name of the member.
value
Specifies the value of the member.
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL.