Create JSON
The Create JSON task assembles a JSON document from workflow variables and input data. The resulting document is added to the payload for use by downstream tasks.
Use this task to shape the workflow's data into a specific JSON structure before passing it to a conversion, export, or integration task.
Configuration
| Property | Type | Description |
|---|---|---|
dry_run | boolean | Run without executing task effects |
variables | array | Variable references to include in the JSON output — each entry maps a variable name to a key in the output document |
fail_if_not_found | boolean | Fail if a referenced variable does not exist |
fail_if_empty | boolean | Fail if a referenced variable exists but has no value |
fail_if_invalid | boolean | Fail if any value cannot be serialised to valid JSON |
extend_original_input | boolean | Merge the generated JSON document into the original input payload rather than replacing it |
See also: Tasks overview
