Language Reference Guide : System Classes : JsonHandler Class : Write Method
 
Share this page          
Write Method
Writes the JSON for JsonValue subclass object into a StringObject.
This method has the following syntax:
integer = JsonHandler.Write(value = JsonValue, json = StringObject[, indented = integer]
[, sortobjectmembers = integer])
This method has the following parameters:
value
Specifies the JsonValue to be written to the StringObject.
json
Specifies the StringObject the JSON will be written to.
indented
Specifies whether the JSON should be written indented.
sortobjectmembers
Specifies whether the members of the JSON objects written will be sorted by name. TRUE sorts the object members.
If the method is successful, it returns ER_OK; otherwise, it returns ER_FAIL.