Skip to content

1.6.4 is polluting arrays with a 'sequence' property #296

@meganwalker-ibm

Description

@meganwalker-ibm

PR #292 included in JSONata 1.6.4 started polluting data returned to consumers with a 'sequence' property attached onto an array.

I don't think this internal property should be externalised to consumers; especially in a way that means it can't be serialised losslessly into a string.

screenshot 2019-01-14 at 10 59 58

The sequence property here is added by JSONata, not from the data we are working with, and it cannot be serialised correctly into JSON (Nor can the equivalent JSON string be parsed into javascript)

{
  "foo": {
    "bar": [
      {
        "name": "freddy",
        "price": 6
      },
      {
        "name": "jsonata",
        "price": 1000000
      },
      sequence: true
    ]
  }
}

Represents the returned data structure, except it's not valid JSON.

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