JsonPath

JsonPath transform plugin

Description

Support use jsonpath select data

Options

name
type
required
default value

Columns

Array

Yes

common options [string]

Transform plugin common parameters, please refer to Transform Plugin for details

fields[array]

option

name
type
required
default value

src_field

String

Yes

dest_field

String

Yes

path

String

Yes

dest_type

String

No

String

src_field

the json source field you want to parse

Support NexusDateType

  • STRING

  • BYTES

  • ARRAY

  • MAP

  • ROW

dest_field

after use jsonpath output field

dest_type

the type of dest field

path

Jsonpath

Read Json Example

The data read from source is a table like this json:

Assuming we want to use JsonPath to extract properties.

Then the data result table fake1 will like this

data
c1_string
c1_boolean
c1_integer
c1_float
c1_double
c1_decimal
c1_date
c1_datetime
c1_array

too much content not to show

this is a string

true

42

3.14

3.14

10.55

2023-10-29

16:12:43.459

["item1", "item2", "item3"]

Read NexusRow Example

Suppose a column in a row of data is of type NexusRow and that the name of the column is col

NexusRow(col)
other

name

age

....

a

18

....

The JsonPath transform converts the values of Nexus into an array,

Then the data result table fake1 will like this

name
age
col
other

a

18

["a",18]

...

Last updated