-
-
Notifications
You must be signed in to change notification settings - Fork 184
Open
Description
JSONC is JSON extended for use as a configuration data file format. Comments are useful in configuration files, and also allow for sections of the config to be commented out to temporarily or permanently disable parts of the configuration.
JSONC is supported by IntelliJ and VSCode.
Example JSONC file.
{
// This is a comment
"name": "Project",
"version": "1.0.0" // Another comment
"settings": {
"enabled": true
}
}Comments can be added to jbang-catalog.json files because the gson parser silently ignores comments by default. Howver, the only remaining issue is that VSCode and IntelliJ displays formatting errors if comments are included in a JSON file.
Renaming the file to jbang-catalog.jsonc resolves this issue.
Only one of the catalog files should exist: either jbang-catalog.json or jbang-catalog.jsonc, but not both.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels