You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is expected: The string is first processed by the compiler to "{"c": "a\a"}" and a is not a valid escaped character according to the JSON grammar.
If you want a \ in the string literal you need to escape it twice: Once for the compiler and once for the JSON parser. This should work: json::parse("{\"c\": \"a\\\\a\"}") or json::parse(R"({"c": "a\\a"})")
json::parse("{\"c\": \"a\\a\"}")
throw std::invalid_argument, msg: parse error - unexpected '"'The text was updated successfully, but these errors were encountered: