> ## Documentation Index
> Fetch the complete documentation index at: https://clickhouse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> JSONCompactStringsEachRowWithProgress 格式文档

# JSONCompactStringsEachRowWithProgress

| 输入 | 输出 | 别名 |
| - | - | - |
| ✗ | ✔ | |

<h2 id="description">
  描述
</h2>

与 [`JSONCompactEachRowWithProgress`](/docs/zh/reference/formats/JSON/JSONCompactEachRowWithProgress) 类似，但所有值都会转换为字符串。其使用的顶层对象类型与前者相同 (`meta`、`row`、`progress`、`totals`、`min`/`max`、`rows_before_limit_at_least`、`rows_before_aggregation`，以及顶层的 `exception`)；`row` / `totals` / `min` / `max` 的载荷仍为按列顺序排列的 **数组**，其中每个元素都序列化为字符串。

有关完整的流对象契约，请参阅 [`JSONCompactEachRowWithProgress`](/docs/zh/reference/formats/JSON/JSONCompactEachRowWithProgress) (`progress` 可能先于 `meta` 到达；当查询包含 `LIMIT` 时，`rows_before_limit_at_least` 只是一个下限估计值，并不能说明有行被丢弃；`exception` 仅在通过 HTTP 且设置了 `http_write_exception_in_output_format=1` 时才会写入)。

<h2 id="example-usage">
  使用示例
</h2>

```sql title="Query" theme={null}
SELECT *
FROM generateRandom('a Array(Int8), d Decimal32(4), c Tuple(DateTime64(3), UUID)', 1, 10, 2)
LIMIT 5
FORMAT JSONCompactStringsEachRowWithProgress
```

```response title="Response" theme={null}
{"meta":[{"name":"a","type":"Array(Int8)"},{"name":"d","type":"Decimal(9, 4)"},{"name":"c","type":"Tuple(DateTime64(3), UUID)"}]}
{"row":["[-8]", "46848.5225", "('2064-06-11 14:00:36.578','b06f4fa1-22ff-f84f-a1b7-a5807d983ae6')"]}
{"row":["[-76]", "-85331.598", "('2038-06-16 04:10:27.271','2bb0de60-3a2c-ffc0-d7a7-a5c88ed8177c')"]}
{"row":["[-32]", "-31470.8994", "('2027-07-18 16:58:34.654','1cdbae4c-ceb2-1337-b954-b175f5efbef8')"]}
{"row":["[-116]", "32104.097", "('1979-04-27 21:51:53.321','66903704-3c83-8f8a-648a-da4ac1ffa9fc')"]}
{"row":["[]", "2427.6614", "('1980-04-24 11:30:35.487','fee19be8-0f46-149b-ed98-43e7455ce2b2')"]}
{"progress":{"read_rows":"5","read_bytes":"184","total_rows_to_read":"5","elapsed_ns":"191151"}}
{"rows_before_limit_at_least":5}
```

<h2 id="format-settings">
  格式设置
</h2>
