-
Notifications
You must be signed in to change notification settings - Fork 215
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
Flatten json processor #4128
Comments
@oeyh This does not mean we should take the suggestion literally. I do not think we should have "[]" in keys. I serves no purpose. |
Sorry if this is the wrong place to ask, since this issue is already closed and the processor implemented, but what exactly is the purpose of having the empty squared brackets as part of the key when remove_list_indices is true? |
Is your feature request related to a problem? Please describe.
There're use cases where nested json objects needs to be flattened. For example:
From:
to
In some specific use cases (#3965), the users wants to remove list indices from the flattened keys and combine leaf values in lists:
Describe the solution you'd like
A new flatten processor with these configurations:
source
: the source key to the object to flattentarget
: the target key to put the flatten objectremove_processed_fields
: boolean, whether to remove processed fields, only keeping flattened fieldsremove_list_indices
: boolean, whether to remove list indices from the flattened keys and combine leaf valuesDescribe alternatives you've considered (Optional)
N/A
Additional context
A specific use case is in #3965
The text was updated successfully, but these errors were encountered: