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

# ConvertArrayToString - ComfyUI Built-in Node Documentation

> Complete documentation for the ConvertArrayToString node in ComfyUI. Learn its inputs, outputs, parameters and usage.

将数组转换为字符串节点接收一个项目数组（列表），并将其转换为格式化的 JSON 字符串。当您需要序列化数组数据以便显示、记录或传递给其他期望字符串输入的系统时，此功能非常有用。

## ## 输入

| 参数   | 描述                             | 数据类型  | 是否必填 | 范围    |
| ---- | ------------------------------ | ----- | ---- | ----- |
| `数组` | 要转换为 JSON 字符串的数组               | ARRAY | 是    | -     |
| `缩进` | 每级缩进的空格数。0 表示生成紧凑的单行字符串（默认值：2） | INT   | 否    | 0 到 8 |

## ## 输出

| 输出名称     | 描述                | 数据类型   |
| -------- | ----------------- | ------ |
| `STRING` | 转换为 JSON 格式字符串的数组 | STRING |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ConvertArrayToString/zh.md)

***

**Source fingerprint (SHA-256):** `ac8397fed0336f546403ee3e1f17d7e8f5973190b102e74943f098bf6905f726`
