Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI_SamplingUtils > GetJsonKeyValue

ComfyUI Node: GetJsonKeyValue

Class Name

GetJsonKeyValue

Category
advanced/utils
Author
silveroxides (Account age: 2211days)
Extension
ComfyUI_SamplingUtils
Latest Updated
2026-06-03
Github Stars
0.02K

How to Install ComfyUI_SamplingUtils

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

GetJsonKeyValue Description

Extract specific JSON values based on key, simplifying data handling and retrieval for dynamic processing.

GetJsonKeyValue:

The GetJsonKeyValue node is designed to extract specific values from a JSON string based on a given key. This node is particularly useful when you need to parse JSON data and retrieve specific information without manually navigating through the JSON structure. By automating the extraction process, it simplifies the task of handling JSON data, making it accessible even to those with limited technical expertise. The node ensures that you can efficiently access the desired data, which can be crucial for tasks that involve dynamic data retrieval and processing.

GetJsonKeyValue Input Parameters:

json_string

The json_string parameter is a multiline input that accepts a JSON-formatted string. This parameter serves as the source from which the node will attempt to extract a value. The JSON string should be properly formatted, as any syntax errors will prevent successful parsing. There are no explicit minimum or maximum values for this parameter, but it must be a valid JSON string for the node to function correctly.

key

The key parameter is a single-line input that specifies the key whose corresponding value you wish to extract from the JSON string. This parameter is crucial as it directs the node to the exact piece of data you are interested in. The key must exist within the JSON structure provided in the json_string parameter for a successful extraction. There are no default values, and the key should be a string that matches one of the keys in the JSON data.

GetJsonKeyValue Output Parameters:

output

The output parameter provides the extracted value from the JSON string based on the specified key. If the key is found and the value is not None, the node returns this value as a string. If the key is not found or the value is None, the output will be an empty string. This output is essential for further processing or analysis, as it delivers the specific data point you need from the JSON input.

GetJsonKeyValue Usage Tips:

  • Ensure that your JSON string is correctly formatted to avoid parsing errors. Use online JSON validators if necessary.
  • Double-check the key you provide to ensure it matches exactly with the key in the JSON data, including case sensitivity.

GetJsonKeyValue Common Errors and Solutions:

JSONDecodeError

  • Explanation: This error occurs when the JSON string is not properly formatted, preventing the node from parsing it.
  • Solution: Validate your JSON string using a JSON validator to ensure it is correctly formatted.

KeyError

  • Explanation: This error happens when the specified key does not exist in the JSON data.
  • Solution: Verify that the key you are using matches exactly with one of the keys in the JSON string, including correct spelling and case sensitivity.

GetJsonKeyValue Related Nodes

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

GetJsonKeyValue