ComfyUI > Nodes > ComfyUI-Only > Workflow JSON Parser

ComfyUI Node: Workflow JSON Parser

Class Name

WorkflowJSONParser

Category
only/Text
Author
eric183 (Account age: 4090days)
Extension
ComfyUI-Only
Latest Updated
2025-08-23
Github Stars
0.07K

How to Install ComfyUI-Only

Install this extension via the ComfyUI Manager by searching for ComfyUI-Only
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Only in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Workflow JSON Parser Description

Parses workflow JSON in ComfyUI to extract prompts and checkpoint names for AI task configuration.

Workflow JSON Parser:

The WorkflowJSONParser is a specialized node designed to parse JSON data related to workflows, particularly those used within the ComfyUI environment. Its primary function is to extract and interpret key elements from a workflow JSON, such as prompts and checkpoint names, which are essential for configuring and executing AI-driven tasks. This node is beneficial for AI artists who need to manage and manipulate workflow data efficiently, as it simplifies the process of extracting meaningful information from complex JSON structures. By automating the parsing process, the WorkflowJSONParser helps streamline workflow management, making it easier to integrate and utilize various components within the ComfyUI framework.

Workflow JSON Parser Input Parameters:

workflow_json

The workflow_json parameter is a multiline string input where you can paste the JSON representation of a ComfyUI workflow. This input is crucial as it serves as the source data for the parser to extract relevant information. The JSON should be well-formed and include all necessary fields for the parser to function correctly. There are no explicit minimum or maximum values, but the JSON must be valid and structured according to the expected format. The default value is an empty string, and it is essential to ensure that the JSON is correctly formatted to avoid parsing errors.

Workflow JSON Parser Output Parameters:

positive_prompt

The positive_prompt output provides the extracted positive prompt from the workflow JSON. This prompt is typically used to guide the AI in generating desired outputs and is a crucial component of the workflow configuration.

filtered_positive_prompt

The filtered_positive_prompt output is a refined version of the positive prompt, potentially removing unnecessary elements to focus on the most relevant parts. This helps in optimizing the prompt for better AI performance.

negative_prompt

The negative_prompt output contains the extracted negative prompt, which is used to specify elements that should be avoided in the AI-generated output. It is an essential part of fine-tuning the workflow to achieve the desired results.

checkpoint_name

The checkpoint_name output provides the name of the checkpoint extracted from the workflow JSON. Checkpoints are critical for saving and loading specific states of the AI model, allowing for consistent and repeatable results.

parse_info

The parse_info output offers a summary of the parsing process, including the number of prompts and checkpoints found. It provides valuable feedback on the success of the parsing operation and any issues encountered.

Workflow JSON Parser Usage Tips:

  • Ensure that the JSON input is correctly formatted and includes all necessary fields to avoid parsing errors and ensure accurate extraction of prompts and checkpoints.
  • Use the filtered_positive_prompt to refine your prompts, focusing on the most impactful elements to enhance AI output quality.
  • Regularly update your checkpoints and ensure they are correctly named in the JSON to maintain consistency and reliability in your workflow executions.

Workflow JSON Parser Common Errors and Solutions:

JSON格式错误: <error_message>

  • Explanation: This error occurs when the provided JSON is not well-formed or contains syntax errors, preventing the parser from interpreting it correctly.
  • Solution: Double-check the JSON structure for any missing brackets, commas, or other syntax issues. Use a JSON validator tool to ensure the JSON is correctly formatted before inputting it into the node.

解析错误: <error_message>

  • Explanation: This error indicates a problem during the parsing process, which could be due to missing fields or unexpected data types in the JSON.
  • Solution: Verify that the JSON includes all required fields, such as nodes and properties, and that the data types match the expected format. Review the JSON structure to ensure it aligns with the ComfyUI workflow specifications.

Workflow JSON Parser Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Only
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Workflow JSON Parser