ComfyUI Node

JSON Field

Create one typed key/value field for JSON object assembly.

By olliethomas1992·Created 5 months ago·Updated 5 months ago· 3
JSON Field
    • FIELD_JSON
    key
    type
    value
    array_separatornewline
    Categoryutils/json

    Inputs (4)

    NameTypeDefaultDescription
    keySTRINGDot-separated path (e.g. camera.lens). Supports array indexing (items[0]) and hyphens (lens-mm).
    typeCOMBOHow to interpret the value. 'int' and 'float' coerce to numbers; 'array' splits by separator; 'object' parses as JSON.
    valueSTRINGValue to assign. For arrays: one item per line (or JSON array syntax). For objects: valid JSON object.
    array_separatoroptCOMBOnewline2 options: newline, comma

    Outputs (1)

    NameTypeDescription
    FIELD_JSONSTRING