Skip to content

Extract Multi with JsonPath

Description

The Extract Multi with JsonPath activity extracts values from JSON content stored in one or more input columns. Each mapping selects a source column, applies a JsonPath expression, and writes the extracted result to a configured output column.

Supported Features

  • Multiple extraction mappings: Extract several values in one activity.
  • Multiple source columns: Each mapping can read from a different JSON column.
  • Custom output columns: Write every extracted value to a named output column.
  • String extraction option: Return extracted values as strings when ExtractAsString is enabled.
  • Original column retention: Keep or drop original input columns using IncludeOriginal.
  • Lineage support: Records source column, JsonPath expression, and output column for each mapping.

Input

TypeRequiredDescription
DataYesInput rows containing one or more columns with JSON text or JSON-compatible values.

Input Scenarios

1. Extract One Value From One JSON Column

IdPayload
1{"user":{"name":"Alice","age":30}}

2. Extract Multiple Values From One JSON Column

Use multiple mappings with the same ColumnName and different JsonPath expressions.

3. Extract Values From Multiple JSON Columns

Use mappings that reference different source columns, such as CustomerJson and OrderJson.


Output

FieldTypeDescription
DataArrayTransformed rows containing extracted output columns. Original columns are retained only when IncludeOriginal is enabled.

Example Output

When IncludeOriginal is true:

IdPayloadCustomerNameCustomerAge
1{"user":{"name":"Alice","age":30}}Alice30

When IncludeOriginal is false:

CustomerNameCustomerAge
Alice30

Configuration Fields

Field NameTypeRequiredDescription
Column MapObject ArrayYesList of extraction mappings. Each mapping contains ColumnName, OutputColumn, JsonPath, and ExtractAsString.
ColumnNamePrevious Data ColumnYesSource column that contains JSON content.
OutputColumnTextYesName of the output column that receives the extracted value.
JsonPathTextYesJsonPath expression used to select a value from the source JSON.
ExtractAsStringBooleanYesWhen enabled, the extracted value is returned as a string. When disabled, the transformer can preserve the extracted value’s native representation where supported.
IncludeOriginalBooleanNoWhen enabled, original input columns are retained alongside extracted columns. When disabled, output contains the extracted columns only.

Conditional Field Rendering Rules

No conditional configuration fields are defined for this activity.


Sample Input

IdPayload
1{"user":{"name":"Alice","age":30},"orders":[{"id":"O-001","amount":120.5}]}
2{"user":{"name":"Bob","age":42},"orders":[{"id":"O-002","amount":89.0}]}

Sample Configuration

ColumnNameOutputColumnJsonPathExtractAsString
PayloadCustomerName$.user.nametrue
PayloadCustomerAge$.user.agefalse
PayloadFirstOrderId$.orders[0].idtrue
FieldValue
IncludeOriginaltrue

Sample Output

IdPayloadCustomerNameCustomerAgeFirstOrderId
1{"user":{"name":"Alice","age":30},"orders":[{"id":"O-001","amount":120.5}]}Alice30O-001
2{"user":{"name":"Bob","age":42},"orders":[{"id":"O-002","amount":89.0}]}Bob42O-002