We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I run code as follows:
std::string sData("{\"a\":\"b\\a\",\"b\":2}"); nlohmann::json obj = nlohmann::json::parse(sData);
It both throw error in version 3.7.3 and 3.11.2.
After delete '' as follows:
std::string sData("{\"a\":\"ba\",\"b\":2}"); nlohmann::json obj = nlohmann::json::parse(sData);
It will run successfuly.
Run code as follows:
expect: json::parse run success and no error occur.
actually: error occur
No response
Microsoft Visual C++ 2019 / Build Tools 16.3.1+1def00d3d (and possibly later)
3.11.2 or 3.7.3
develop
The text was updated successfully, but these errors were encountered:
The exception message should tell you that backslashes need to be escaped.
Sorry, something went wrong.
The code in reproduction steps section, I did escaped the backslashes, but Git don't show the original code.
When processing a string containing a windows format path, an unhandled exception will be thrown
This issue is same as issue #2652
@AronZhi See here for instructions on how to format code so it's not mangled: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks
No branches or pull requests
Description
When I run code as follows:
It both throw error in version 3.7.3 and 3.11.2.
After delete '' as follows:
It will run successfuly.
Reproduction steps
Run code as follows:
It both throw error in version 3.7.3 and 3.11.2.
Expected vs. actual results
expect:
json::parse run success and no error occur.
actually:
error occur
Minimal code example
No response
Error messages
No response
Compiler and operating system
Microsoft Visual C++ 2019 / Build Tools 16.3.1+1def00d3d (and possibly later)
Library version
3.11.2 or 3.7.3
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: