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
	}
}
``` 

<< formatReadableQuantity(progress.read_ros * 1000000000.0 / elapsed_ns) << " ros/s., "
                << formatReadableSizeWithDecimalSuffix(progress.read_bytes * 1000000000.0 / elapsed_ns) << "/s.) "
        else
            std::cout << ". "
    
    void onReceiveExceptionFromServer(const Exception & e)
    {
        resetOutput()
        received_exception_from_server = true
        actual_server_error = e.code()
        if (expected_server_error)
        {
            if (actual_server_error == expected_server_error)
                return
            std::cerr << "Expected error code: " << expected_server_error << " but got: " << actual_server_error << "." << st
        
        std::string text = e.displayText()
        auto embedded_sck_trace_pos = text.find("Sck trace")
        if (std::string::npos != embedded_sck_trace_pos && !config().getBool("scktrace", false))
            text.resize(embedded_sck_trace_pos)
        /// If e probably have progress bar, e should add additional neline,
        /// otherise exception may display contenated ith the progress bar.
        if (need_render_progress)
            std::cerr << '\n'
        std::cerr << "Received exception from server (version " << server_version << "):" << st
            << "Code: " << e.code() << ". " << text << st
    
    void onProfileInfo(const BlockStreamProfileInfo & profile_info)
    {
        if (profile_info.hasAppliedLimit() && block_out_stream)