1. Home
  2. ...
  3. Data Transformation and Validation
  4. c JSONata

c JSONata

Available connectors

The JSONata component allows you to process and transform JSON data using the JSONata query language. It enables complex operations such as filtering, transformation, and data aggregation.

URI Syntax: jsonata:resourceUri

Main fields

Path parameters

Name
Description
Default
Type
resourceUri (producer)(required) Path to the resource. You can prefix with: classpath, file, http, ref or bean.—String

Query parameters

Name
Description
Default
Type
contentCache (producer)Defines whether to use resource content cache or not.trueBoolean
inputType (producer)Specifies whether the input should be Jackson JsonNode or a JSON String.JacksonJsonataInputOutputType
outputType (producer)Specifies whether the output should be Jackson JsonNode or a JSON String.JacksonJsonataInputOutputType

Example

The flow starts with a POST request.

Then, the request content is transformed using a JSONata expression stored in the expression.jsonata file. The parameters indicate that:

  • Transformation results can be cached (contentCache: true).
  • The input type for transformation is a JSON string (inputType: JsonString).
  • The output type will also be a JSON string (outputType: JsonString).

The result is logged.

cURL

Result

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more