Hello,
Thanks for this library and for answering questions!!
The library was working perfectly when I was working without an IDE. I just brought my files into visual studio and am getting the following error when trying to cout from my .json file:
Unhandled exception at 0x75754402 in Epic Disaster Story.exe: Microsoft C++ exception: nlohmann::detail::out_of_range at memory location 0x009CE6C0. occurred
It takes me to json_sax.hpp and shows the following code where the error occurred:
JSON_THROW(*static_cast<const detail::invalid_iterator*>(&ex));
In my code this occurs when I try:
std::cout << j["pages"][0]["text"];
I believe the json file is formatted properly as I had no problems without the IDE...
Hello,
Thanks for this library and for answering questions!!
The library was working perfectly when I was working without an IDE. I just brought my files into visual studio and am getting the following error when trying to cout from my .json file:
Unhandled exception at 0x75754402 in Epic Disaster Story.exe: Microsoft C++ exception: nlohmann::detail::out_of_range at memory location 0x009CE6C0. occurred
It takes me to json_sax.hpp and shows the following code where the error occurred:
In my code this occurs when I try:
I believe the json file is formatted properly as I had no problems without the IDE...