JSONLoader

The JSONLoader writes processed rows to a JSON file.

Configuration

XPath

Type

Description

json/@outputFileName

Attribute

Name of the output JSON file (path relative to the project root).

Example

Input data

Row

stringField

integerField

1

String: value1

Integer: 1

2

String: value2

Integer: 2

Pipeline configuration

<json outputFileName="data/output/output.json"/>

File output

[
    {
        "stringField": "value1",
        "integerField": 1
    },
    {
        "stringField": "value2",
        "integerField": 2
    }
]

Pipeline output

Row

string

integer

1

String: value1

Integer: 1

2

String: value2

Integer: 2