ComfyUI > Nodes > ComfyUI-LLMs-Toolkit > JSON Combine

ComfyUI Node: JSON Combine

Class Name

JSONCombine

Category
🚦ComfyUI_LLMs_Toolkit/JSON
Author
HuangYuChuh (Account age: 42days)
Extension
ComfyUI-LLMs-Toolkit
Latest Updated
2026-04-23
Github Stars
0.02K

How to Install ComfyUI-LLMs-Toolkit

Install this extension via the ComfyUI Manager by searching for ComfyUI-LLMs-Toolkit
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-LLMs-Toolkit 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

JSON Combine Description

Merge multiple JSON objects into a single structure, prioritizing the most recent data and handling key conflicts.

JSON Combine:

The JSONCombine node is designed to merge multiple JSON objects into a single cohesive JSON structure. This node is particularly useful when you have several JSON data sources and need to consolidate them into one, ensuring that the most recent data takes precedence. The node processes up to five JSON inputs, combining them in a way that later inputs overwrite earlier ones if there are any key conflicts. This functionality is beneficial for scenarios where you need to update or override specific parts of a JSON object with new data. By using this node, you can streamline your data management process, making it easier to handle complex JSON structures without manually merging them.

JSON Combine Input Parameters:

json_1

This parameter accepts a JSON object or a JSON-formatted string as input. It serves as the base JSON structure that subsequent inputs can modify or extend. The default value is an empty string, and it is optional, meaning you can choose not to provide it if you don't have initial data to merge.

json_2

Similar to json_1, this parameter takes a JSON object or a JSON-formatted string. It is used to add or overwrite data in the base JSON provided by json_1. The default value is an empty string, and it is optional.

json_3

This parameter functions like json_2, allowing you to further modify the combined JSON structure. It accepts a JSON object or a JSON-formatted string, with a default value of an empty string. It is optional.

json_4

json_4 provides another layer of data that can be merged into the existing JSON structure. It accepts a JSON object or a JSON-formatted string, with a default value of an empty string. This parameter is optional.

json_5

The final input parameter, json_5, allows you to make the last set of modifications or additions to the JSON structure. It accepts a JSON object or a JSON-formatted string, with a default value of an empty string. This parameter is optional and has the highest precedence in the merging process.

JSON Combine Output Parameters:

json_string

The output parameter json_string is a JSON-formatted string that represents the combined result of all input JSON objects. This output is crucial as it provides a single, unified JSON structure that reflects all the modifications and overrides specified by the input parameters. It allows you to easily pass the consolidated data to other nodes or processes.

JSON Combine Usage Tips:

  • Ensure that each JSON input is correctly formatted to avoid parsing errors. Use online JSON validators if necessary.
  • When merging JSON objects, be mindful of key conflicts. The node is designed to let later inputs overwrite earlier ones, so plan your input order accordingly.
  • Use this node to simplify workflows that require frequent updates to JSON data, as it automates the merging process and reduces manual intervention.

JSON Combine Common Errors and Solutions:

Warning: json_X is not a JSON object (got <type>), skipping update.

  • Explanation: This warning occurs when the input provided is not a valid JSON object. The node expects a JSON object but received a different data type.
  • Solution: Verify that the input is a correctly formatted JSON object. If it's a string, ensure it can be parsed into a JSON object.

Warning: json_X is not valid JSON, skipping.

  • Explanation: This error indicates that the input string could not be parsed as JSON due to syntax errors or incorrect formatting.
  • Solution: Check the input string for any syntax errors or formatting issues. Use a JSON validator to ensure the string is valid JSON.

Warning: json_X is not a valid JSON string or dictionary, skipping.

  • Explanation: This warning is shown when the input is neither a valid JSON string nor a dictionary, making it unusable for merging.
  • Solution: Ensure that the input is either a JSON-formatted string or a dictionary. Convert any other data types to a valid JSON format before inputting them into the node.

JSON Combine Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LLMs-Toolkit
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.

JSON Combine