`#include "nlohmann\json.hpp"
#include
#include
using nlohmann::json;
int main()
{
std::string s = "Casa De Los Niños, Inc."; // Sample string with non ascii chars at 15th location 1 based index.
//json second = json::parse(s); -- crashes here.
json second = s; // works
std::string s2 = (second.dump()); //// Crashes here
}
`
Project is setup with MBCS Character set.
`#include "nlohmann\json.hpp"
#include
#include
using nlohmann::json;
int main()
{
std::string s = "Casa De Los Niños, Inc."; // Sample string with non ascii chars at 15th location 1 based index.
}
`
Project is setup with MBCS Character set.