Articles on: Blocks Creator
This article is also available in:

πŸŸͺ Generate JSON

πŸŸͺ Generate JSON



The Generate JSON block allows you to convert simple data (text, numbers, lists, Booleans) into a structured JSON string, usable for API requests or webhooks.


This block is particularly useful for preparing standardized payloads before sending them to external services, ensuring interoperability with third-party systems.


πŸ“₯ Entries


  • keys (List[Text]): List of variable names to include in the final JSON. Each element in this list dynamically generates a corresponding entry for the associated values.
  • (Dynamic variables): Entries automatically generated for each specified key, accepting Text, Number, Boolean or List values.


πŸ“€ Outings


  • out (Flow): Continuation of the execution flow after generating the JSON.
  • json (Text): Formatted JSON string containing structured data, ready to be transmitted or stored.


πŸ’‘ Example of use


Scenario: Preparing an API request for a reservation system


  1. A user fills out a form with their name, age and the list of desired services.
  2. Data is stored in variables: name (Text), age (Number), services (List[Text]).
  3. The Generate JSON block is placed in the flow to structure this data.
  4. The keys entry is populated with the list ["name", "age", "services"].
  5. The variables name, age and services are connected to the generated dynamic inputs.
  6. The resulting JSON is sent via a Webhook block to create a reservation in the external system.


βš™οΈ Technical Details

  • Dynamic input generation: Inputs for values are created automatically based on the keys list, allowing flexible adaptation to the needs of the scenario.
  • Supported types: The block accepts Text, Number, Boolean and List types for dynamic values.
  • Output format: The json output is a valid string according to the JSON standard, compatible with most systems and programming languages.

Updated on: 04/03/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!