JSON Generator (Mock)
Learn how to create JSON objects using the JSON Generator component for the Digibee iPaaS. The Documentation Portal provides configuration parameters of the component.
JSON Generator (Mock) creates a JSON object. This component accepts any input.
Parameters
Take a look at the configuration options for the component. Parameters supported by Double Braces expressions are marked with (DB)
.
Parameter | Description | Default value | Data type |
---|---|---|---|
JSON | The JSON object that will be the output of the component. | N/A | JSON |
Fail on Error | If you activate this option, the pipeline execution will be interrupted if an error occurs during the execution of this component. If you deactivate it, when an error happens, the component will output an error message in JSON format, but the pipeline execution will continue. Incorrect use of this option can lead to false success messages in the subsequent steps of your pipeline. | False | Boolean |
Usage example
In this example, we used the JSON Generator (Mock) component to modify someone’s data. Here, we want to join the firstName
and lastName
properties into a single property called fullName
. We also want to delete the phoneNumber
property and add a property called country
, which has the value “Brazil”
.
Input
Parameter settings
We use the JSON Generator (Mock) component with the following JSON parameter configuration:
Here, we used the CONCAT Double Braces function to join the first and last names, with a blank space between them.
Output
Last updated