The following example should be considered as an invalid JSON, yet it passes and is seen as if we have 2 values in the array.
"id": 1,
"props": [
{
"id": 1,
"propB": true
},
],
"propC": false
}
It returns the following error:
java.lang.AssertionError: props[]: Expected 1 values but got 2
It can be linked to the following issue.