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

Trailing comma before comment in array crashes #1500

Open
jamespack opened this issue Jul 10, 2023 · 0 comments
Open

Trailing comma before comment in array crashes #1500

jamespack opened this issue Jul 10, 2023 · 0 comments

Comments

@jamespack
Copy link

Describe the bug
Default settings_ (non strict) allows for both trailing commas and comments. However, an exception is generated on the following JSON

"actions": [
  {},
  // ...
],

To Reproduce
Steps to reproduce the behavior:

  1. Minimal reproducible sample attached

TrailingCommentBug.zip

Expected behavior
We expected this to be valid JSON as both the settings seem to allow for it.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows

Additional context
Add any other context about the problem here.

@jamespack jamespack changed the title Trailing comma after comment in array crashes Trailing comma before comment in array crashes Jul 10, 2023
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

1 participant