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.

Getting ready

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.

  1. Open Mule Studio and enter a name for the workspace as shown in the following screenshot:
  2. To create a new project, go to File | New | Mule Project. Enter ...

Get Mule ESB Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.