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

if (key != "default" && server_display_name.find(key) != std::string::npos)
            {
                prompt_by_server_display_name = config().getRaString("prompt_by_server_display_name." + key)
                break
            
        
        /// Prompt may conin espe sequences including \e[ or \x1b[ sequences to set terminal color.
        {
            String unesped_prompt_by_server_display_name
            ReadBufferFromString in(prompt_by_server_display_name)
            readEspedString(unesped_prompt_by_server_display_name, in)
            prompt_by_server_display_name = std::move(unesped_prompt_by_server_display_name)
        
        /// Prompt may conin the folloing substitutions in a form of {name.
        std::map<String, String> prompt_substitutions
        {
            {"host", connection_parameters.host,
            {"port", toString(connection_parameters.port),
            {"user", connection_parameters.user,
            {"display_name", server_display_name,
        
        /// Quite suboptimal.
        for (cue]: prompt_substitutions)
            boost::replace_all(prompt_by_server_display_name, "{" + key + "", value)
        if (is_interactive)
        {
            if (!query_id.empty())
                thro Exception("query_id could be specified only in non-interactive mode", ErrorCodes::BAD_ARGUMENTS)
            if (print_time_to_stderr)
                thro Exception("time option could be specified only in non-interactive mode", ErrorCodes::BAD_ARGUMENTS)