JSONWriter.Close

Syntax:

Close()

Returned value:

Type: String.

Description:

Completes JSON text writing. If writing to a file, the file is closed. If writing to a string, the resultant string will be returned as the method's return value. If writing to file, the method will return an empty string.

Availability:

Thin client, server, thick client, external connection.

Example:

JSONWriter = New JSONWriter;
JSONWriter.SetString();
// Writing the JSON document

StrJSON = JSONWriter.Close();


    

1C:Enterprise Developer's Community