-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support encoding JSON #832
Comments
Per the request in #852, it would be good to keep these different encoders similar. Two possible options to consider:
This might look like:
This could be configured by authors like:
|
We should not have processor names with actions in it. Ideally processor name should be "json" with action as "encode json". There can be cases where we need same json processor with say action "decode json". |
@dlvenable @sharraj How about this?
|
@kkondaka , I like I'm unclear on what |
@dlvenable it could be XML, for example |
Is your feature request related to a problem? Please describe.
In some scenarios, pipelines should be able to encode objects as a JSON string. Data Prepper should provide a feature for this.
Describe the solution you'd like
Provide a processor for encoding JSON -
encode_json
. It should be the inverse of the JSON parsing processor from #831.Example
Given the following configuration:
Given this input event:
The event is changed to:
The text was updated successfully, but these errors were encountered: