The JSON
block facilitates the construction of JSON objects that can be utilized as input for other blocks that require JSON data. This block provides a flexible hybrid approach, allowing you to define headers and body content for the Call API block efficiently.
I/O | Feature | Type | Simple Explanation |
---|---|---|---|
input | data | object | The properties that will be included in the resulting JSON object. |
output | json | object | The generated JSON object, ready for use in subsequent blocks. |
You can specify properties for the data
input using several approaches:
To use static methods, click on the block to access the side panel. Locate the data section where you can click ”+ Add data” to add header properties or click “X” to remove any existing property.
In a hybrid setup, start by defining certain static properties and allow dynamic inputs from other blocks during execution. Click on ”+ Add data” within the side panel to add a property and enter any static values as outlined in Method 1 above.
For dynamic values, only provide a key and leave its value blank; this will create a new handle named data.YOUR_KEY_NAME
. You can then connect outputs from various blocks as needed.
Consider how this block streamlines processes in various scenarios:
In conclusion, with its versatile handling of JSON objects combined with both static and dynamic capabilities—this JSON
block is essential whenever structured communication via APIs is required!