Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Currently, Geode supports the inserting of JSON documents using the JSONFormatter util. Even though this is util is designed for performance it lacks the capability and finesse to determine whether a JSON document partially matches an existing PDXType definition. This leads to the problem that the following two document documents, logically represent the same object but would generate two generat different PDXType definitions.

Code Block
languagetext
firstline0001
titleJSON example 1
{
  "name": {
    "firstName": "John",
    "surname": "Doe"
  }
}
Code Block
{
  "name": {
    "surname": "Doe",
    "firstName": "John"
  }
}
Code Block
languagetext
titleJSON example 2
{
  "name": {
    "firstName": "John",
    "surname": "Doe"
  },
  "address": {
    "addressLine1":"Suite 200",
    "addressLine2":"1235 South Rd",
    "addressLine3":null,
    "state":"OH",
    "zipCode":"287233",
    "country":"USA"
  }
}

...