ComfyUI Node
JSON Field
Create one typed key/value field for JSON object assembly.
JSON Field
- FIELD_JSON
◄key—►
◄type▾►
◄value►
◄array_separatornewline►
Categoryutils/json
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| key | STRING | Dot-separated path (e.g. camera.lens). Supports array indexing (items[0]) and hyphens (lens-mm). | |
| type | COMBO | How to interpret the value. 'int' and 'float' coerce to numbers; 'array' splits by separator; 'object' parses as JSON. | |
| value | STRING | Value to assign. For arrays: one item per line (or JSON array syntax). For objects: valid JSON object. | |
| array_separatoropt | COMBO | newline | 2 options: newline, comma |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| FIELD_JSON | STRING | — |