WriteFile Method
Writes the JSON for JsonValue subclass object into a file.
This method has the following syntax:
integer = JsonHandler.WriteFile(value = JsonValue, filename = varchar(256)
[, indented = integer][, sortobjectmembers = integer])
This method has the following parameters:
value
Specifies the JsonValue to be written to a file.
filename
Specifies the name of the file 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.