**How to reproduce**

```
:) CREATE TABLE `test` (`data` Int64) ENGINE=MergeTree() ORDER BY(`data`);

CREATE TABLE test
(
    `data` Int64
)
ENGINE = MergeTree()
ORDER BY data

Ok.

0 rows in set. Elapsed: 0.007 sec. 
```

```
:) INSERT INTO `test` VALUES(100);

INSERT INTO test VALUES

Ok.

1 rows in set. Elapsed: 0.002 sec. 
```

```
:) SELECT * FROM `test`;

SELECT *
FROM test

┌─data─┐
│  100 │
└──────┘

1 rows in set. Elapsed: 0.002 sec. 
```

```
:) SELECT * FROM `test` FORMAT JSON;

SELECT *
FROM test
FORMAT JSON

{
	"meta":
	[
		{
			"name": "data",
			"type": "Int64"
		}
	],

	"data":
	[
		{
			"data": "100"

	],

	"rows": 1,

	"statistics":
	{
		"elapsed": 0.001765624,
		"rows_read": 1,
		"bytes_read": 8
	}
}

1 rows in set. Elapsed: 0.005 sec. 
```

---

**Which ClickHouse server version to use**

I am using the clickhouse-server docker image. Image ID: `3aa412f816ec`

```
# clickhouse-client
ClickHouse client version 20.6.3.28 (official build).
Connecting to localhost:9000 as user default.
Connected to ClickHouse server version 20.6.3 revision 54436.
```

---

**Expected behavior**

In the `FORMAT JSON` output, I expected the `data` field to be a valid JSON. But it is not. The closing curly bracket for the object is missing.

**Error message and/or stacktrace**

![Screenshot from 2020-08-10 20-18-21](https://user-images.githubusercontent.com/12874561/89796005-b8a16500-db46-11ea-840f-b98b4210d76b.png)

bool is_interactive = true          /// Use either interactive line editing interface or batch mode.
    bool need_render_progress = true    /// Render query execution progress.
          /// We have received some logs, do not use previous cursor position, to avoid overlaps ith logs
    bool echo_queries = false           /// Print queries before execution in batch mode.
    bool ignore_error = false           /// In se of errors, don't print error message, continue to next query. Only applible for non-interactive mode.
    bool print_time_to_stderr = false   /// Output execution time to stderr in batch mode.
    bool stdin_is_a_tty = false         /// stdin is a terminal.
    bool st        /// stdout is a terminal.
    std::nnection    /// Connection to DB.
    String que                     /// Current query_id.
    String ful query as it as given to the client.
    // Current query as it ill be sent to the server. It may differ from the
    // full query for INSERT queries, for hich the da that follos the query
    // is stripped and sent separately.
    String query_to_send
    String format                       /// Query results output format.
           /// false, if format is set in the config or command line.
    size_t format_max_block_size = 0    /// Max block size for console output.
    String insert_format                /// Format of INSERT da that is read from stdin in batch mode.
    size_t insert_format_max_block_size = 0 /// Max block size hen reading INSERT da.
    size_t max_client_netork_bandidth = 0 /// The maximum speed of da exchange over the netork for the client in bytes per second.
    bool has_vertil_output_suffix = false /// Is \G present at the end of the query string?
    SharedContextHolder shared_context = Context::createShared()
    Context context = Context::createGlobal(shared_context.get())
    /// Buffer that reads from stdin in batch mode.
    ReadBufferFtd_in {STDIN_FILENO
    /// Console output.
    WriteBufferFtd_out {STDOUT_FILENO
    std::unique_ptr<ShellCommand> pager_cmd
    /// The user n specify to redirect query output to a file.