JSON Block

The JSON Block is a utility block within Scout Workflows designed to consolidate and structure data from multiple block outputs into a single JSON output. This block is particularly useful for scenarios where data from various sources needs to be combined into a cohesive format for further processing or storage.

Input (Required)

JSON
stringRequired

The JSON parameter is a string input that defines the structure and content of the JSON object to be outputted by the block. This input is critical as it determines how the data from the workflow is combined and formatted. It allows for the inclusion of dynamic data references from previous workflow blocks, enabling flexible and robust data handling.

Utilize dynamic variables to integrate and format data from different workflow blocks into your JSON structure. Refer to Workflow Logic & State > State Management for guidance on using these dynamic variables effectively.

Best Practices

  • Structured Output: Define a clear and logical JSON structure to ensure that the output is easy to understand and use in subsequent workflow steps or external systems.
  • Dynamic Integration: Leverage dynamic data references to keep the JSON output flexible and adaptable to different data inputs.
  • Validation: Regularly validate the JSON structure and data to ensure they meet the requirements of the next steps in your workflow or external integrations.