-
Notifications
You must be signed in to change notification settings - Fork 334
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
Conditional removal of array entries #1277
Comments
I am going with the assumption that the input json is always an array with just 1 element and the output is expected to be an object with that first element.
If your array can contain more than one object and you want to map each then use this:
|
Thanks for the response. I realized that my input json need not be enclosed in an array. Sorry about the confusion. I suppose the transformation wont change significantly due to this. |
Yes, I have answered it based on your query on stackoverflow: https://stackoverflow.com/a/79377351/6279967 |
I have a json like this
I want to keep the users array empty when status is "PENDING", "INACTIVE" or "BLOCKED" but not of any other value of status.
e.g.
it should result in
How can this be done with Jolt specs?
The text was updated successfully, but these errors were encountered: