Skip to content

Should consider the JSON to be invalid when adding a "," after a closing object tag in an array of objects #127

@AElMehdi

Description

@AElMehdi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions