A custom node for ComfyUI to parse and extract data from JSON strings.
A custom node for ComfyUI to parse and extract data from JSON strings.
cd ComfyUI/custom_nodes/
git clone [email protected]:Q-Bug4/Comfyui-Simple-Json-Node.git
Find the "Simple JSON Parser" node in the "utils" category of ComfyUI.
Inputs:
json_string
: JSON string (multiline supported)path
: Data path (optional)Output: Parsed JSON data or specific value
object.nestedObject.property
array[0]
object.array[2].property
Parse JSON:
{"name": "John", "age": 30}
Access property:
{"user": {"name": "Alice", "email": "[email protected]"}}
user.email
[email protected]
Access array:
{"items": ["apple", "banana", "cherry"]}
items[1]
banana
ValueError is raised for:
Improvements are welcome! Steps:
MIT License. See LICENSE file for details.