Skip to content
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 unrolling lists of objects in the output #2

Open
lowell80 opened this issue Nov 9, 2018 · 0 comments
Open

Support unrolling lists of objects in the output #2

lowell80 opened this issue Nov 9, 2018 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@lowell80
Copy link
Member

lowell80 commented Nov 9, 2018

List of objects should result in unrolling the of the list into multiple output events. Essentially, this is replacing the need for a secondary mvexpand command.

So if the jmespath expression results in

[
   { "A" : 4, "B": 9 },
   { "A" : 1, "B": 2 }
]

Then the input result/event should be cloned and returned twice. The first time with A=4, B=9 and the second event should have A=1,B=2.

Without this, a list JSON strings could be returned, which then requires mvexpand followed by another spath.

@lowell80 lowell80 added the enhancement New feature or request label Nov 9, 2018
@lowell80 lowell80 added this to the Release 2.0 milestone Nov 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant