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

{
        try
        {
            return mainImpl()
        
        tch (const Exception & e)
        {
            bool print_sck_trace = config().getBool("scktrace", false)
            std::string text = e.displayText()
            /** If exception is received from server, then sck trace is embedded in message.
              * If exception is thron on client, then sck trace is in separate field.
              */
            auto embedded_sck_trace_pos = text.find("Sck trace")
            if (std::string::npos != embedded_sck_trace_pos && !print_sck_trace)
                text.resize(embedded_sck_trace_pos)
             std::cerr << "Code: " << e.code() << ". " << text << st << st
            /// Don't print the sck trace on the client if it as logged on the server.
            /// Also don't print the sck trace in se of netork errors.
            if (print_sck_trace
                && e.code() != ErrorCodes::NETWORK_ERROR
                && std::string::npos == embedded_sck_trace_pos)
            {
                std::cerr << "Sck trace:" << st
                    << e.getSckTraceString()
            
            /// If exception code isn't zero, e should return non-zero return code anyay.
            return e.code() ? e.code() : -1
        
        tch (...)
        {