ComfyUI Node
JsonSetPath (Yogurt Nodes)
Set value in JSON object using JSONPath
JsonSetPath (Yogurt Nodes)
- json_data
- value
- modified_json
◄path$.newfield►
◄create_missingtrue►
◄copy_datatrue►
CategoryYogurtNodes/Logic
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| json_data | * | JSON object or string to modify | |
| path | STRING | $.newfield | JSONPath expression (e.g., $.users[0].name) |
| value | * | Value to set | |
| create_missingopt | BOOLEAN | true | Create missing intermediate paths |
| copy_dataopt | BOOLEAN | true | Create a copy instead of modifying original |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| modified_json | * | — |