JsonPath

JsonPath transform plugin

Support use jsonpath select data

name
type
required
default value

Columns

Array

Yes

common options [string]arrow-up-right

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

fields[array]arrow-up-right

optionarrow-up-right

name
type
required
default value

src_field

String

Yes

dest_field

String

Yes

path

String

Yes

dest_type

String

No

String

src_fieldarrow-up-right

the json source field you want to parse

Support NexusDateType

  • STRING

  • BYTES

  • ARRAY

  • MAP

  • ROW

dest_fieldarrow-up-right

after use jsonpath output field

dest_typearrow-up-right

the type of dest field

patharrow-up-right

Jsonpath

Read Json Examplearrow-up-right

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 Examplearrow-up-right

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