ComfyUI > Nodes > ComfyUI-LogicUtils > Dump Text JSONL Node

ComfyUI Node: Dump Text JSONL Node

Class Name

DumpTextJsonlNode

Category
text
Author
aria1th (Account age: 3016days)
Extension
ComfyUI-LogicUtils
Latest Updated
2026-01-21
Github Stars
0.1K

How to Install ComfyUI-LogicUtils

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

Dump Text JSONL Node Description

Appends text data as JSON objects to a JSONL file with concurrency safety for organized storage.

Dump Text JSONL Node:

The DumpTextJsonlNode is designed to facilitate the process of appending text data to a JSON Lines (JSONL) file, where each line represents a separate JSON object. This node is particularly useful for managing and organizing text data in a structured format, making it easier to handle large datasets or logs. By appending each text entry as a JSON object with a specified key, it ensures that the data remains organized and easily accessible. The node also incorporates concurrency safety by using file locks to prevent simultaneous writes to the same file, thereby maintaining data integrity. This feature is especially beneficial in environments where multiple processes might attempt to write to the file concurrently. Overall, the DumpTextJsonlNode provides a reliable and efficient method for storing text data in a JSONL format, which is widely used for data interchange and storage due to its simplicity and ease of parsing.

Dump Text JSONL Node Input Parameters:

text

The text parameter accepts either a single string or a list of strings. Each string represents a piece of text that will be appended to the JSONL file as a separate JSON object. If a list is provided, each item in the list will be written as a separate line in the file. This flexibility allows you to handle both individual text entries and batches of text data efficiently.

filename_prefix

The filename_prefix parameter is a string that specifies the prefix to be used for the output file's name. By default, it is set to "ComfyUI". This prefix helps in organizing and identifying files, especially when multiple files are generated, by providing a consistent naming convention.

subfolder_dir

The subfolder_dir parameter is a string that defines the subdirectory within the output directory where the JSONL file will be saved. By default, it is an empty string, meaning the file will be saved directly in the output directory. This parameter allows for better organization of files by categorizing them into specific subfolders.

filename

The filename parameter specifies the name of the JSONL file to which the text data will be appended. The default value is "dump.jsonl". This parameter allows you to define a custom file name, which can be useful for distinguishing between different datasets or logs.

keyname

The keyname parameter is a string that determines the key under which each text entry will be stored in the JSON object. By default, it is set to "text". This key is crucial for identifying the text data within each JSON object, especially when the file is parsed or processed later.

Dump Text JSONL Node Output Parameters:

STRING

The output of the DumpTextJsonlNode is a string representing the filename of the JSONL file to which the text data has been appended. This output is useful for confirming the file's location and name, allowing you to easily access or reference the file in subsequent operations or processes.

Dump Text JSONL Node Usage Tips:

  • Ensure that the text parameter is correctly formatted as either a single string or a list of strings to avoid errors during the writing process.
  • Use the filename_prefix and subfolder_dir parameters to organize your output files systematically, which can be particularly helpful when dealing with multiple datasets or logs.
  • Consider setting a unique keyname if your JSONL file will contain multiple types of data, to clearly distinguish between different data entries.

Dump Text JSONL Node Common Errors and Solutions:

FileNotFoundError

  • Explanation: This error occurs if the specified subfolder directory does not exist.
  • Solution: Ensure that the subfolder_dir path is correct and that the directory exists before executing the node.

PermissionError

  • Explanation: This error arises when the node does not have the necessary permissions to write to the specified directory.
  • Solution: Check the permissions of the output directory and ensure that the node has write access.

ValueError: Invalid text input

  • Explanation: This error occurs if the text parameter is neither a string nor a list of strings.
  • Solution: Verify that the text input is correctly formatted as a string or a list of strings.

Dump Text JSONL Node Related Nodes

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

Dump Text JSONL Node