Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AElMehdi opened this issue Nov 16, 2020 · 4 comments

Comments

@AElMehdi
Copy link

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.

@Lu-Jichen
Copy link

I would like to try to work on this issue.

@Crayon-new
Copy link

@AElMehdi I think it is caused by the first character is """. So this json lib will parse it as JSONString. Maybe I will solve this bug.

@AElMehdi
Copy link
Author

@Crayon-new Cool! Have fun! :)

@ChuXiyes
Copy link

I would like to work on this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants