Json field mix when publishing a page

Hi!

I created a json field to add structured data markup for my pages.

When I publish, the order of which the items were listed changed completely.

Here’s a test I’ve done using this script:

{
  "team": {
    "name": "thfcc",
    "goals": 5
  },
  "aaaaaa": {
    "someOtherKey": "ggggg"
  },
  "user": {
    "firstName": "RRR",
    "age": "29",
    "lastName": "zzz"
  },
  "zzzz": {
    "someKey": "fffff"
  }
}

When I published, the field was changed to this:

{
  "team": {
    "name": "thfcc",
    "goals": 5
  },
  "user": {
    "firstName": "RRR",
    "age": "29",
    "lastName": "zzz"
  },
  "aaaaaa": {
    "someOtherKey": "ggggg"
  },
  "zzzz": {
    "someKey": "fffff"
  }
}

The “user” and “aaaaaa” filed just switched locations.

I’m not sure why this is happening.

Help would be appreciated :slight_smile:

Hi Ron,

We were able to recreate the issue on our end as well.
We’re discussing this issue with our engineering team once and will let you know about any updates that go through.

Regards,