-
Notifications
You must be signed in to change notification settings - Fork 321
Support parsing JSON #831
Copy link
Copy link
Closed
Labels
enhancementNew feature or requestNew feature or requestplugin - processorA plugin to manipulate data in the data prepper pipeline.A plugin to manipulate data in the data prepper pipeline.
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestplugin - processorA plugin to manipulate data in the data prepper pipeline.A plugin to manipulate data in the data prepper pipeline.
Type
Projects
Status
Done
Is your feature request related to a problem? Please describe.
Data Prepper events may have JSON values inside Event fields. Data Prepper should be able to parse these JSON strings and create fields directly in the Event from the JSON.
Describe the solution you'd like
Provide a JSON parsing processor -
parse_json.It should be able to parse a JSON string from a field and set the values in the Event object. This processor will automatically support nesting.
Example
Given the following configuration:
Given this input event:
The input event is changed to:
Example with Nesting
Given this input event:
The input event is changed to:
Configurations
source- the field with JSONtarget- the field to set the values in; by default this is the root object