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

JsonGetPath (Yogurt Nodes)

Get value from JSON object using JSONPath

By yogurt7771·Created 2 years ago·Updated 2 months ago· 0
JsonGetPath (Yogurt Nodes)
  • json_data
  • default_value
  • value
path$
use_defaultfalse
raise_on_errorfalse
CategoryYogurtNodes/Logic

Inputs (5)

NameTypeDefaultDescription
json_data*JSON object or string
pathSTRING$JSONPath expression (e.g., $.users[0].name)
default_valueopt*Default value if path not found
use_defaultoptBOOLEANfalseReturn default value instead of None
raise_on_erroroptBOOLEANfalseRaise error if path not found

Outputs (1)

NameTypeDescription
value*