JSON Transformation
Most recent version: v0.0.1
Last updated
Was this helpful?
Most recent version: v0.0.1
Last updated
Was this helpful?
The JSON Transformation Action modifies your input JSON values using one of the given operations.
These are the input and output ports of this Action:
Find JSON Transformation in the Actions tab (under the Transformation group) and drag it onto the canvas.
To open the configuration, click the Action in the canvas and select Configuration.
Enter the required parameters:
Select field to transform*
Select the field containing the JSON values from the incoming data. A sample input JSON is in the code box below.
Select operation*
Select the operation to perform on your JSON field:
JQ - Performs a jq query on your input JSON values. Enter the following:
Query Expression* - Enter the required jq expression. Note that the jq syntax has some limitations when you use it in this operation. Learn more in the note below.
Flat JSON - Converts a nested JSON into a new, flattened JSON field with only one layer of key/value pairs. Enter the following:
Flatten level* - Set the maximum number of levels to flatten to.
Choose an option - Choose to separate values with _
or .
(_
by default.
Output field*
Give your output field a name. You will ssee the transformation of the sample input JSON after applying the selected operation in the box below.
Click Save to complete the process.
JQ syntax limitations
Note that the JQ language has some limitations in Onum:
The following jq operations are not supported: get_jq_origin
, get_prog_origin
, get_search_list
, input_line_number
and $__loc__
The following jq flags are not supported: --ascii-output, -a
, --seq
, --sort-keys, -S
and --unbuffered
JSON extensions cannot be parsed (NaN
, Infinity
and [000]
).
Some regular expression metacharacters, back references, and look-around assertions are not supported.
Byte-order mark (BOM) is not supported.
Keywords cannot be used as function names.
Module name prefixes cannot be used in function declarations.
Check below an example with the different JSON operations available:
In order to configure this Action, you must first link it to a Listener. Go to to learn how to link.