Comflowy Load JSON
Turn a text blob into something the graph can use
- JSON
ComfyUI has a typing problem: strings are easy to move around, but structured data isn't. Comflowy Load JSON is the pack's bridge between the two. You paste a JSON object into a multiline box, and it comes out the other side as a proper JSON value that the pack's other data nodes - Comflowy Extract JSON, Comflowy Preview JSON - and anything else speaking JSON can consume. It's a tiny node with one job, and it does exactly that job.
Why bother? Because the moment your workflow starts talking to APIs, the round trip becomes: an HTTP node returns a JSON object → you need to pull one value out of it → you need to see what you got. Without a node that converts raw text into the JSON type, you're stuck trying to string-manipulate structured data, which is misery. This node is the first half of the "paste something in, extract something out" flow. It's also handy when you have a JSON snippet from a tutorial or an API response and want it as a live input rather than hardcoded in another node.
How it works and the input
The whole mechanism is one line of Python: json.loads(json_str). It parses the multiline string into a Python dict or list, which the node emits as the JSON type.
- json_str (required, multiline) - the JSON text to parse.
Output: JSON (the parsed object). Note this node is not an output node, so it doesn't render a preview box of its own - wire it into Comflowy Preview JSON if you want to see it, or into Comflowy Extract JSON if you want values out of it.
Installing and the gotchas
Install Comflowy's Custom Nodes via ComfyUI Manager (search "Comflowy") or git clone https://github.com/6174/comflowy-nodes into custom_nodes, restart. No API key needed for this one - it's pure local parsing. Dependency: just requests (which isn't even used here).
The failure mode is the obvious one and it's worth stating plainly:
- Invalid JSON = a crash.
json.loadsthrows on malformed input - missing commas, trailing commas, unquoted keys, single quotes instead of double. ComfyUI will show you the traceback with the character position; fix the text, don't blame the node. - It's a string in, structured out. If you paste a JSON file path instead of JSON content, this node will happily try to parse a path and fail. Load the file's contents first - this node takes the text itself.
If you're used to the bigger ecosystem's JSON nodes (like those in other utility packs), this one is interchangeable with them; it exists so the Comflowy pack's data pipeline is self-contained. For the price of one small node, you get clean structured data flowing through your graph - paste, parse, extract, done.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| json_str | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| JSON | JSON | — |