6994cb64c56bff440e235a3823f508f396b83e57
DumasNodes
DumasNodes is a ComfyUI custom-node pack for generic utility workflows under the Dumas brand.
Included Nodes
-
Dumas JSON String to Object- Input:
json_string - Output: parsed
JSON - Use it to turn raw JSON text into a structured object.
- Input:
-
Dumas JSON Object to String- Inputs:
json_object,pretty,sort_keys - Output: serialized
STRING - Use it to compact or pretty-print JSON for prompts, logs, or file output.
- Inputs:
-
Dumas JSON Get Value- Inputs:
json_object,path - Output:
JSON - Reads a nested value using dot paths like
user.profile.nameoritems.0.id.
- Inputs:
-
Dumas JSON Set Value- Inputs:
json_object,path,value_json - Output: updated
JSON - Writes a parsed JSON value into a nested path without mutating the original object.
- Inputs:
-
Dumas JSON Merge Objects- Inputs:
base_object,overlay_object - Output: merged
JSON - Deep-merges dictionaries so overlay values replace or extend the base object.
- Inputs:
-
Dumas JSON Keys- Input:
json_object - Outputs:
keysas JSON array,countas integer - Lists the top-level keys of an object and reports how many there are.
- Input:
-
Dumas JSON Array Length- Input:
json_array - Output:
INT - Returns the length of a JSON array.
- Input:
-
Dumas JSON Array Iterator- Inputs:
json_input,index,mode - Outputs:
item,current_index,total_items - Returns the current array item and position, with
modeset tofixed,incr, ordecr.
- Inputs:
All nodes live in the Dumas/JSON category.
Installation
-
Change into your ComfyUI custom nodes directory:
cd /path/to/ComfyUI/custom_nodes -
Clone this repository:
git clone https://git.dumas.ddns.net/chris.dumas/DumasNodes.git -
Restart ComfyUI.
Usage
Use dot paths for nested access:
user.profile.name
items.0.id
settings.render.width
Dumas JSON Set Value expects value_json to be valid JSON, so strings should be quoted:
"Dumas"
{"enabled": true, "retries": 3}
Dumas JSON Array Iterator clamps to valid bounds:
fixed -> use index as-is
incr -> use index + 1
decr -> use index - 1
Roadmap
This repo is intended to grow into a broader set of Dumas-branded generic utility nodes, including JSON helpers and adjacent data-manipulation tools.
License
MIT.
Languages
Python
100%