Calling convention: CIP_JSON_SaveObjectToFile(JSONObjectPointer: NativeInt, "JSONFilePath": String)
Description: Serializes a JSON value and writes the resulting text to a file.
Parameters:
JSONObjectPointer = Valid pointer to a managed JSON value.
JSONFilePath = Destination file path.
Returns: No defined return value. An invalid pointer or file-writing error raises an exception.
Availability: Default.
Example:
try
JSONObjSQL := CIP_JSON_SQL("", "SELECT * FROM MY_TABLE");
CIP_JSON_SaveObjectToFile(JSONObjSQL, "c:\temp\MyTable.json");
finally
CIP_JSON_FreeObject(JSONObjSQL);
end;