Skip to content

The document seems to slightly contradict itself regarding trailing commas #5

@ell1e

Description

@ell1e

The document seems to slightly contradict itself regarding trailing commas, since the perhaps most popular user-facing use by VS Code supports them (as stated in a footnote after all). In fact, in the user config which to my knowledge is meant to be JSONC, and represents one of the main advantages JSONC has over JSON which is that it's nicer to write configs in as a human, it won't even warn about trailing commas:

Image

Therefore, if you attempt to specify JSONC such that it includes the VS Code use of it, trailing commas should probably be included as allowed even if discourged.
For what it's worth, I wrote a specification of the VS Code JSONC format a while ago.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions