...
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 |
---|
language | text |
---|
firstline | 0001 |
---|
title | JSON example 1 |
---|
|
{
"name": {
"firstName": "John",
"surname": "Doe"
}
}
|
Code Block |
---|
{
"name": {
"surname": "Doe",
"firstName": "John"
}
} |
Code Block |
---|
language | text |
---|
title | JSON example 2 |
---|
|
{
"name": {
"firstName": "John",
"surname": "Doe"
},
"address": {
"addressLine1":"Suite 200",
"addressLine2":"1235 South Rd",
"addressLine3":null,
"state":"OH",
"zipCode":"287233",
"country":"USA"
}
} |
...