2017-04-03 19:49:50 +00:00
|
|
|
JSONCompact
|
|
|
|
-----------
|
|
|
|
|
2017-04-26 18:02:30 +00:00
|
|
|
Differs from ``JSON`` only in that data rows are output in arrays, not in objects.
|
2017-04-03 19:49:50 +00:00
|
|
|
|
2017-04-26 18:02:30 +00:00
|
|
|
Example:
|
2017-06-13 04:15:47 +00:00
|
|
|
|
|
|
|
.. code-block:: text
|
|
|
|
|
2017-04-03 19:49:50 +00:00
|
|
|
{
|
|
|
|
"meta":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "SearchPhrase",
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "c",
|
|
|
|
"type": "UInt64"
|
|
|
|
}
|
|
|
|
],
|
2017-04-26 18:02:30 +00:00
|
|
|
|
2017-04-03 19:49:50 +00:00
|
|
|
"data":
|
|
|
|
[
|
|
|
|
["", "8267016"],
|
2017-04-26 18:02:30 +00:00
|
|
|
["bath interiors", "2166"],
|
|
|
|
["yandex", "1655"],
|
|
|
|
["spring 2014 fashion", "1549"],
|
|
|
|
["freeform photo", "1480"]
|
2017-04-03 19:49:50 +00:00
|
|
|
],
|
2017-04-26 18:02:30 +00:00
|
|
|
|
2017-04-03 19:49:50 +00:00
|
|
|
"totals": ["","8873898"],
|
2017-04-26 18:02:30 +00:00
|
|
|
|
2017-04-03 19:49:50 +00:00
|
|
|
"extremes":
|
|
|
|
{
|
|
|
|
"min": ["","1480"],
|
|
|
|
"max": ["","8267016"]
|
|
|
|
},
|
2017-04-26 18:02:30 +00:00
|
|
|
|
2017-04-03 19:49:50 +00:00
|
|
|
"rows": 5,
|
|
|
|
|
|
|
|
"rows_before_limit_at_least": 141137
|
|
|
|
}
|
|
|
|
|
2017-04-26 18:02:30 +00:00
|
|
|
This format is only appropriate for outputting a query result, not for parsing.
|
|
|
|
See ``JSONEachRow`` format for INSERT queries.
|