Nodes/ComfyUI-YogurtNodes/JsonSetPath (Yogurt Nodes)
ComfyUI Node

JsonSetPath (Yogurt Nodes)

Set value in JSON object using JSONPath

By yogurt7771·Created 2 years ago·Updated 2 months ago· 0
JsonSetPath (Yogurt Nodes)
  • json_data
  • value
  • modified_json
path$.newfield
create_missingtrue
copy_datatrue
CategoryYogurtNodes/Logic

Inputs (5)

NameTypeDefaultDescription
json_data*JSON object or string to modify
pathSTRING$.newfieldJSONPath expression (e.g., $.users[0].name)
value*Value to set
create_missingoptBOOLEANtrueCreate missing intermediate paths
copy_dataoptBOOLEANtrueCreate a copy instead of modifying original

Outputs (1)

NameTypeDescription
modified_json*