-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Support for Comments #1513
Comments
Not for this library, sorry. |
This library implements JSON as defined in RFC 8259. We do not plan to break compatibility by adding comments. |
All that makes sense, but I guess I was hoping for something more basic. Perhaps just provide some way, or even an example, of how someone would customize some aspect of how the library parses. I wouldn't think you'd bother or need to make it some kind or primary feature that encroached on the standard parsing of json. Either way I think this projectis awesome and I'd love to see it get accepted in the standard. |
https://github.com/andrew-d/json-strip is a C++ library I just found for removing comments. It can even insert whitespace to keep line/column numbers the same. I'm sure there are others. |
such a pitty. |
Comments are supported. |
To expand on that, there is a parameter to the |
Sorry @nlohmann, you're library is too good for me to not bring up comment support again. Standards are standards, but the real world is another story. I am also faced with a company which will refuse to chose a library just because it doesn't allow for comments in the json file.
Are there any workarounds?
The text was updated successfully, but these errors were encountered: