O'Reilly logo

Mule ESB Cookbook by Uchit Vyas, Azaz Desai, Abdul Samad, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required