Skip to content

Inconsistent Behavior of [] between version 1.7.0 and 1.8.3 #462

Closed
@jhorbulyk

Description

@jhorbulyk

Consider the following input:

{
  "singleArray": [{"foo":"bar"}]
}

and JSONata expression:
singleArray[]

In version 1.7.0, the evaluated result is

[
  {
    "foo": "bar"
  }
]

but in 1.8.3 it is

[
  [
    {
      "foo": "bar"
    }
  ]
]

Which evaluation is correct and why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions