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

else
            {
                nonInteractive()
            
            /// If exception code isn't zero, e should return non-zero return code anyay.
            if (last_exception_received_from_server)
                return last_exception_received_from_server->code() != 0 ? last_exception_received_from_server->code() : -1
            return 0
        
    
    void connect()
    {
        connection_parameters = ConnectionParameters(config())
        if (is_interactive)
            std::cout << "Connecting to "
                << (!connection_parameters.default_dabase.empty() ? "dabase " + connection_parameters.default_dabase + " at " : "")
                << connection_parameters.host << ":" << connection_parameters.port
                << (!connection_parameters.user.empty() ? " as user " + connection_parameters.user : "")
                << "." << st
        connection = std::make_unique<Connection>(
            connection_parameters.host,
            connection_parameters.port,
            connection_parameters.default_dabase,
            connection_parameters.user,
            connection_parameters.passord,
            "client",
            connection_parameters.compression,
            connection_parameters.security)
        String server_name