We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
Given the following input:
{ "PropA": "a", "PropB": "b", "PropC": "c", //"PropD": "d", "PropE": "e" }
And transformation:
{ "PropA": "#valueof($.PropA)", "PropB": "#valueof($.PropB)", "Props": [ { "#ifgroup(#exists($.PropC))": { "Name": "PropC", "Value": "#valueof($.PropC)" } }, { "#ifgroup(#exists($.PropD))": { "Name": "PropD", "Value": "#valueof($.PropD)" } }, { "#ifgroup(#exists($.PropE))": { "Name": "PropE", "Value": "#valueof($.PropE)" } } ] }
I'm getting the following output:
{ "PropA": "a", "PropB": "b", "Props": [ { "Name": "PropC", "Value": "c" }, {}, { "Name": "PropE", "Value": "e" } ] }
Where PropD is transformed as an empty object element.
PropD
Is there a way to prevent this, or should I just do a second transformation that removes the empty element?
Cheers!
The text was updated successfully, but these errors were encountered:
Currently #ifgroup always return an array, even if it's empty. Maybe an EvaluationMode for this would be handy...
Sorry, something went wrong.
No branches or pull requests
Hi,
Given the following input:
And transformation:
I'm getting the following output:
Where
PropD
is transformed as an empty object element.Is there a way to prevent this, or should I just do a second transformation that removes the empty element?
Cheers!
The text was updated successfully, but these errors were encountered: