-
-
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
avoid malformed json #433
Comments
No, the parser does this check. But you can catch the exception that is thrown in case of a parse error. |
@whitecloud-sas Does this help you? |
Yes, this is what I did: try { Thanks @nlohmann |
Note with #301 we shall add diagnosis information to the exceptions so you can provide the user the location in the JSON text that led to the error. |
Hello!
if I deliver a malformed string like {"key1":"val1", "key.... it crashes at json j_complete = json::parse(v_string); line, exists something to check this before parse? thanks!
The text was updated successfully, but these errors were encountered: