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

) || *begin == '')
                ++begin
            TestHint test_hint(test_mode, str)
            expected_client_error = test_hint.clientError()
            expected_server_error = test_hint.serverError()
            try
            {
                auto ast_to_process = orig_ast
                if (insert && insert->da)
                {
                    ast_to_process = nullptr
                    processTextAsSingleQuery(str)
                
                else
                {
                    parsed_query = ast_to_process
                    full_query = str
                    query_to_send = str
                    processParsedSingleQuery()
                
            
            tch (...)
            {
                last_exception_received_from_server = std::make_unique<Exception>(getCurrentExceptionMessage(true), getCurrentExceptionCode())
                actual_client_error = last_exception_received_from_server->code()
                if (!ignore_error && (!actual_client_error || actual_client_error != expected_client_error))
                    std::cerr << "Error on processing query: " << str << st << last_exception_received_from_server->message()
                received_exception_from_server = true
            
            if (!test_hint.checkActual(actual_server_error, actual_client_error, received_exception_from_server, last_exception_received_from_server))