Skip to content

json to txt

The json-to-txt Module

🇨🇴 Versión en español de este documento

The json-to-txt module takes several text snippets, joins them into a single string (where the former snippets are now separated by double spaces), and returns the string in a text file.

This overview of the json-to-txt module is divided into the following sections:

Inputs and Outputs of the json-to-txt Module

The json-to-txt module accepts JSON file input. The input JSON must respect this format.

The json-to-txt module returns a TXT file in which all of the JSON snippets have been concatenated into a single string.

Available Models in the json-to-txt Module

You use the following model when using the json-to-txt module:

  • base - (default) Krixik-made

Use the modules argument in the process method to determine what model you'd like active when you process files through the json-to-txt module, though note that at this time there is only one option.

Model Parameters in the json-to-txt Module

The json-to-txt module model is not parameterizable. Consequently, should you wish to specify what model you'll use through the process method's modules argument, params will always be set to an empty dictionary. For example:

# example model selection for json-to-txt module in process
modules={'json-to-txt': {'model':'base',
                         'params': {}}}

Input File Size Limit

json-to-txt module input JSON files can currently be no larger than 3MB.

A Single-Module Pipeline for the json-to-txt Module

Please click here to visit the Pipeline Examples section of our documentation and review an example of a single-module pipeline for the json-to-txt module.

Further Information on json-to-txt Module IO and Clickability

Please click here to visit the Convenience Methods (and More!) documentation. There you will find two tools to learn more about the json-to-txt module: