DataWeave is the type of transformation provided by MuleSoft, which is built on top of Data Mapper. It's very robust in nature and can transform irrespective of mapping complexity (Simple mappings, medium-complex mappings, and complex mappings).

It's very easy to learn and makes developers' lives easy :)

DataWeave provides real-time actionable insights by collecting, curating, and analyzing data from multiple sources at a very large scale, across geographies. The Data Weave Language is a powerful template engine that allows you to transform data to and from any kind of format (XML, CSV, JSON, POJOs, Maps, etc.).

Document Structure

Here is the structure to be followed while developing the DataWeave code.

The Header, which defines directives (optional).

The Body, which describes the output structure.

The two sections are delimited by a separator, which is not required if no header is present. The separator consists of three dashes: "---".

Data Weave Canonical Model

DataWeave uses three basic data types: Objects, Arrays, and Simple Types, the execution of a DataWeave transformational ways produces one of these three types of data. This expression can be built using any of the following elements: