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

Add a flag to allow parser to accept trailing commas. #2480

Merged
merged 1 commit into from Oct 19, 2023

Conversation

sandwwraith
Copy link
Member

This is one of the popular community requests and one of the main reasons people ask for Json5 support. Implementing this flag separately will allow alleviating large paint points quickly without a need to wait for full Json5 support.

Fixes #1812
Relates to: #797, #2221

This is one of the popular community requests and one of the main reasons people ask for Json5 support.
Implementing this flag separately will allow alleviating large paint points quickly without a need to wait for full Json5 support.

Fixes #1812
Relates to: #797, #2221
@sandwwraith sandwwraith marked this pull request as ready for review October 17, 2023 11:31
@sandwwraith
Copy link
Member Author

To discussion: #1812 says 'support trailing commas in lenient mode', but I'm not sure this is a good idea to 'Just put everything non-complaint under lenient'. Probably we should leave it only for quotation and even rename it to relaxedQuotes or something.

@sandwwraith sandwwraith merged commit cf57414 into dev Oct 19, 2023
3 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants