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 option :allow_trailing_comma to JSON#parse #680

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

casperisfine
Copy link

Fix: #401

Since we already accept comments without even a flag to turn it off, it makes sense to go just one small bit farther and optionally allow trailing comma so we have decent support for what is generally defined as "JSONC" and frequently used for configuration files.

Fix: ruby#401

Since we already accept comments without even a flag to turn it
off, it makes sense to go just one small bit farther and optionally
allow trailing comma so we have decent support for what is generally
defined as "JSONC" and frequently used for configuration files.

Co-Authored-By: Jan-Joost Spanjers <[email protected]>
@byroot byroot merged commit 5ce7142 into ruby:master Nov 4, 2024
36 checks passed
@casperisfine casperisfine deleted the trailing-comma branch November 4, 2024 15:55
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.

2 participants