/
JSON Parser

JSON Parser

Description

This unit is a Processor unit type.

The JSON Parser unit parses events containing a properly formatted JSON, using Jackson.

An event comes in through the in port. The data field content is parsed using the Jackson JSON parser.

Successful input events are enriched with a new field containing the parse result, and the event is output through the out port.

If an error occurs, the input event is enriched with new fields describing the problem, and the event is sent through the error port.

Configuration

After dragging this unit into the Flow canvas, double-click it to access its configuration options. The following table describes the configuration options of this unit:

Tab

Field

Description

Tab

Field

Description

General

Name

Enter a name for the unit. It must start with a letter, and cannot contain spaces. Only letters, numbers, and underscores are allowed.

Description

Enter a description detailing the scope of the unit.

In field

Enter the name of the input event field containing JSON data.

Out field

Enter a name for the output event field containing the result.

Input ports

Port

Description

Port

Description

in

Events containing a properly formatted JSON to be parsed.

Output ports



Port

Description

Port

Description

out

Outputs events enriched with an extra field containing the parsed JSON.

error

Signals when an error occurred. Outputs input events enriched with standard error fields.

 

Related content

CSV Parser
CSV Parser
More like this
Regex
More like this
Regex Unit
Regex Unit
More like this
Map
More like this
Map
More like this
Lookup - Flow unit
Lookup - Flow unit
More like this