Skip to content

Array output results differ between 1.6.4 and 1.5.4 #314

@webOS101

Description

@webOS101

Given the following input:

{
  "tags": [
    {
      "title": "example",
      "description": "Hello"
    }
  ]
}

And the following expression:

$.tags[][title='example'][]

1.6.4 produces an extra nested array:

[
  [
    {
      "title": "example",
      "description": "Hello"
    }
  ]
]

Whereas 1.5.4 produced this output:

[
  {
    "title": "example",
    "description": "Hello"
  }
]

I didn't see any bug fixed that might explain this, unless it was #236 (listed twice in the vnotes for 1.6.1).

It's entirely possible that my poor jsonata skills are at fault, but I didn't expect a difference between these two versions.

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