Skip to content

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

@dschulten

Description

@dschulten

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions