Configuring the JSON-to-Object transformer
The JSON-to-Object transformer is used to transform a JSON string to object data and vice versa. Using this transformer, we convert JSON data into an object type.
In this example, you will see how to store data in the database using the JSON-to-Object transformer. We need four components for this: the File Endpoint, the JSON-to-Object transformer, the Collection Splitter, and the Database Endpoint. You have to install PostgreSQL on your system.
How to do it...
In this section, you will see how to use the JSON-to-Object transformer in Mule Studio.
- Open Mule Studio and enter a name for the workspace as shown in the following screenshot:
- To create a new project, go to File | New | Mule Project. Enter ...