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

Empty array and nested empty arrays delete parts of the output #527

Closed
dschulten opened this issue Aug 2, 2021 · 0 comments · Fixed by #533
Closed

Empty array and nested empty arrays delete parts of the output #527

dschulten opened this issue Aug 2, 2021 · 0 comments · Fixed by #533
Labels

Comments

@dschulten
Copy link

I have a JSONata template which contains no references to the input (pure json, no jsonata expression).

If the input is an empty array [], most of the output is deleted:
https://try.jsonata.org/NZakh1bYK

If the input is [[]], a little bit more of the output appears:
https://try.jsonata.org/2Uo8Z9DeJ

If the input is [[[]]], the entire output appears:
https://try.jsonata.org/X67Ohv6gn

If the input is empty or {}, the output equals the JSONata template.

Expected: the output should equal the JSONata template, if the template contains no JSONata expressions, regardless of the input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants