-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Optional comment support. #363
Comments
(If you really need to skip comments, you may want to add rules to the re2c part - this would be more efficient and would work in all parsers.) |
@nlohmann Thanks for the tip but I like to distinguish between compliant input generated by JavaScript and other libraries and configuration files written by hand. |
@qis I understand that comments may be convenient, but this would be a noncompliant extension which would result in troubles later on. |
Here are two
basic_json
functions that allow parsing JSON input with comments. This implementation is not very efficient and I would love to see this functionality implemented (either this way or properly) in nlohmann/json.The text was updated successfully, but these errors were encountered: