2017-12-28 15:13:23 +00:00
|
|
|
# JSONCompact
|
|
|
|
|
|
|
|
Differs from JSON only in that data rows are output in arrays, not in objects.
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"meta":
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"name": "SearchPhrase",
|
|
|
|
"type": "String"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "c",
|
|
|
|
"type": "UInt64"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
"data":
|
|
|
|
[
|
|
|
|
["", "8267016"],
|
|
|
|
["bathroom interior design", "2166"],
|
|
|
|
["yandex", "1655"],
|
|
|
|
["spring 2014 fashion", "1549"],
|
2018-04-23 06:20:21 +00:00
|
|
|
["freeform photos", "1480"]
|
2017-12-28 15:13:23 +00:00
|
|
|
],
|
|
|
|
|
|
|
|
"totals": ["","8873898"],
|
|
|
|
|
|
|
|
"extremes":
|
|
|
|
{
|
|
|
|
"min": ["","1480"],
|
|
|
|
"max": ["","8267016"]
|
|
|
|
},
|
|
|
|
|
|
|
|
"rows": 5,
|
|
|
|
|
|
|
|
"rows_before_limit_at_least": 141137
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
This format is only appropriate for outputting a query result, but not for parsing (retrieving data to insert in a table).
|
|
|
|
See also the `JSONEachRow` format.
|
|
|
|
|