Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Add support for JSON comments #43

Closed
czechboy0 opened this issue Aug 31, 2016 · 1 comment
Closed

Add support for JSON comments #43

czechboy0 opened this issue Aug 31, 2016 · 1 comment

Comments

@czechboy0
Copy link
Collaborator

JSON comments are a thing apparently. Add support for ignoring them during parsing.

@tannernelson can you please provide specific rules for where and when they can appear?

@tanner0101
Copy link
Contributor

tanner0101 commented Aug 31, 2016

/*
    This is a JSON file multiline comment
*/
{
    "message": "Hello world.", // single line comments work
    "other": "/* don't strip this out */",
    "crazy": "\"/*wow escaped strings are*/ // annoying looking \""
}

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

No branches or pull requests

2 participants