JSON fields are ordered differently when exceeding 8 fields per object

System Information
  • Strapi Version: 3.6.3
  • Operating System: macOS Big Sur
  • Database: SQLite
  • Node Version: 14.15.3
  • NPM Version: 6.14.9

Hi, I am seeing very strange behaviour on the Strapi admin side.

I have a JSON data field in one of my content types.

It works perfectly fine until the number of fields inside the JSON object is either 8 or less than 8.

As soon as I introduce field number 9, the order of JSON fields gets changed.

Let’s say I have a Person type JSON-LD object and I add only 8 fields in this format:

{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "Jane Doe",
  "url": "http://www.janedoe.com",
  "sameAs": "sdfsdfsdf",
  "jobTitle": "CEO",
  "image": "janedoe.jpg",
  "description": "jane doe description"
}

Until this moment, it is perfectly fine.

But if I add a new field like “memberOf”, then the ordering of the fields gets changed.

{
  "name": "Jane Doe",
  "url": "http://www.janedoe.com",
  "@context": "https://schema.org",
  "memberOf": "janedoewebsite.com",
  "sameAs": "sdfsdfsdf",
  "@type": "Person",
  "jobTitle": "CEO",
  "image": "janedoe.jpg",
  "description": "jane doe description"
}

You can see that that the whole ordering of fields have been changed by introducing field 9.

Any help would be much appreciated.

Thanks in advance.

Have you figured out a solution to this?