Replies: 1 comment
-
|
This is filtered out by what's called the "object filter". You can set it in the API https://github.com/schibsted/jslt/blob/master/docs/api.md |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are transforming this a JSON object and as part of a larger JSLT we have this attribute that has an empty array i.e. "recharge-non-monetary-amounts": [ ],.
The generated output looks good apart from the fact that the ""recharge-non-monetary-amounts": [ ]" is not present.
However if I make the array contain a value then attribute is rendgeneartedred i.e. change to "recharge-non-monetary-amounts": [null]. I can see it
{
"recharge-non-monetary-amounts" : [ null ]
}
Is there an optimisation that removes the attribute because the array is empty? Any suggestions
Beta Was this translation helpful? Give feedback.
All reactions