Visit ComfyUI Online for ready-to-use ComfyUI environment
Filter and extract keywords from JSON data using custom chip widget for efficient data processing.
The LF_KeywordToggleFromJSON
node is designed to filter and extract specific keywords from a JSON dataset that is compatible with Ketchup Lite. This node allows you to input a JSON object and a custom chip widget containing keywords. It then filters the JSON data based on the provided keywords and generates a string of these keywords separated by a specified separator. This functionality is particularly useful for AI artists who need to manage and manipulate large sets of keywords within JSON data, enabling more efficient and targeted data processing.
This parameter accepts a JSON object that is compatible with the Ketchup Lite dataset. It serves as the primary data source from which keywords will be filtered. The JSON object should contain nodes with identifiable keywords that can be toggled based on the input from the chip widget.
This is a string parameter that specifies the character(s) used to separate the keywords in the output prompt. The default value is ,
, but you can customize it to any string that suits your needs. This separator helps in formatting the output string of keywords, making it easier to read and use in subsequent processes.
This parameter accepts a custom chip widget, which is essentially a string containing keywords separated by commas. These keywords are used to filter the JSON data. The chip widget allows you to specify which keywords you are interested in, making the node highly customizable and adaptable to different datasets.
This output is a JSON object that contains only the nodes from the input JSON that match the keywords specified in the chip widget. It effectively filters the original JSON data, providing a more focused dataset that includes only the relevant nodes.
This output is a string that contains the values of the filtered keywords, separated by the specified separator. This string is useful for generating prompts or for any other application where a formatted list of keywords is required.
json_input
parameter contains a well-structured JSON object compatible with Ketchup Lite to avoid any parsing issues.separator
parameter to match the formatting requirements of your subsequent processes, such as generating prompts or creating lists.chip
parameter to dynamically filter the JSON data based on your current needs, allowing for flexible and targeted data extraction.json_input
parameter contains a malformed or incompatible JSON object.chip
parameter does not contain any keywords that match the nodes in the JSON input.separator
parameter is not correctly applied, resulting in improperly formatted output.© Copyright 2024 RunComfy. All Rights Reserved.