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

JSON5 conf files #1524

Open
sim642 opened this issue Jun 24, 2024 · 0 comments
Open

JSON5 conf files #1524

sim642 opened this issue Jun 24, 2024 · 0 comments

Comments

@sim642
Copy link
Member

sim642 commented Jun 24, 2024

Yojson now has JSON5 support: ocaml-community/yojson#152. This would give support for comments and trailing commas.
The annoying thing about JSON5 is that Microsoft and VSCode seem to be immune to it (microsoft/vscode#100688), so JSON5 syntax highlighting requires installing a separate extension.

Actually, Yojson's non-JSON5 parser also allows comments which we could already use, but that might confuse some other tooling. For example, VSCode doesn't like comments in .json files, but is fine with them using .jsonc extension (for JSON with comments). But that extension is quite uncommon.

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

No branches or pull requests

1 participant