JSLT
Learn more about the component and how to use it.
The JSLT component allows manipulation of a JSON using JSLT, a language for JSON processing and querying. For more information, see the official documentation on Github.
The component is useful to perform several actions, such as:
modify the structure of a JSON and keep its values;
add, extract and remove data from a JSON;
sort the structure of a JSON;
modify the values contained in a JSON through functions, such as text manipulation, mathematical calculations, conversions between data types, among others;
access and manipulate data from arrays.
Take a look at the configuration parameters of the component:
Payload: the JSON content to be manipulated. This field supports Double Braces expressions.
JSLT: the JSLT declaration to be executed.
Fail On Error: if the option is active, the execution of the pipeline with error will be interrupted. Otherwise, the pipeline execution proceeds, but the result will show a false value for the “success” property.
Important: the component does not support JSLT import statements.
JSLT expression examples
Simple data transpose
Payload
JSLT
Output
JSLT Native functions
Important: the example below represents some of the available JSLT native functions. For more information about it and the complete list of functions, visit the Github documentation.
Payload
JSLT
Output
Variables and custom functions
Payload
JSLT
Output
If and For Operators
Payload
JSLT
Output
Last updated