ComfyUI Node
JSON Root Object
Preview and validate final JSON object. Accepts dynamic object inputs.
JSON Root Object
- objects
- JSON_TEXT
◄preview_json{}►
◄duplicate_key_policyerror►
◄strict_modefalse►
◄pretty_printtrue►
◄schema_json►
Categoryutils/json
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| objects | COMFY_AUTOGROW_V3 | — | |
| preview_json | STRING | {} | — |
| duplicate_key_policy | COMBO | error | What to do when multiple field inputs share the same key: error (reject), overwrite (last wins), or keep_first. |
| strict_mode | BOOLEAN | false | When enabled, keys not declared in the schema are rejected. |
| pretty_print | BOOLEAN | true | — |
| schema_jsonopt | STRING | Optional JSON Schema. Supports type, required, properties, enum, pattern. Use 'Create Schema' button to auto-generate from preview. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| JSON_TEXT | STRING | — |