The last line in `data` section of the output is always empty. 

```
# clickhouse-client
ClickHouse client version 20.5.2.7 (official build).
Connecting to localhost:9001 as user default.
Connected to ClickHouse server version 20.5.2 revision 54435.

sas-vrxctd96rqw5lw25.db.yandex.net :) select 1 format JSON

SELECT 1
FORMAT JSON

{
	"meta":
	[
		{
			"name": "1",
			"type": "UInt8"
		}
	],

	"data":
	[
		{
			"1": 1

	],

	"rows": 1,

	"statistics":
	{
		"elapsed": 0.00019223,
		"rows_read": 1,
		"bytes_read": 1
	}
}

```

The issue appears only in interactive mode. In non-interactive mode clickhouse-client produces the correct output:

```
# clickhouse-client -q 'select 1 format JSON'
{
	"meta":
	[
		{
			"name": "1",
			"type": "UInt8"
		}
	],

	"data":
	[
		{
			"1": 1
		}
	],

	"rows": 1,

	"statistics":
	{
		"elapsed": 0.000220845,
		"rows_read": 1,
		"bytes_read": 1
	}
}
``` 

const auto & out_file = out_file_node.value.safeGet<std::string>()
                    out_file_buf.emplace(out_file, DBMS_DEFAULT_BUFFER_SIZE, O_WRONLY | O_EXCL | O_CREAT)
                    out_buf = &*out_file_buf
                    // We are riting to file, so default format is the same as in non-interactive mode.
                    if (is_interactive && is_default_format)
                        current_format = "TabSeparated"
                
                if (query_ith_output->format != nullptr)
                {
                    if (has_vertil_output_suffix)
                        thro Exception("Output format already specified", ErrorCodes::CLIENT_OUTPUT_FORMAT_SPECIFIED)
                    const auto & id = query_ith_output->format->as<ASTIdentifier &>()
                    current_format = id.name
                
            
            if (has_vertil_output_suffix)
                current_format = "Vertil"
            block_out_stream = context.getOutputFormat(current_format, *out_buf, block)
            block_out_stream->ritePrefix()
        
    
    void initLogsOutputStream()
    {
        if (!logs_out_stream)
        {
            WriteBuffer * b = out_logs_buf.get()
            if (!out_logs_buf)
            {
                if (server_logs_file.empty())
                {