Open askraskr opened 1 month ago
Can you try with unsigned long?
I did. After a few hundred records read from Mongo, it failed again with the same error. BTW, all PassedTime
values are greater than zero (0
).
P.S. How does nlohmann::json work with numbers? What makes a the type of a number nlohmann::json::value_t::number_integer
or nlohmann::json::value_t::number_unsigned
?
Description
Just compiled and installed the last version of nlohmann_json library with CMake. I was reading JSON documents from Mongo. Converted Mongo documents to
nlohmann_json::json
s.after compiling and running it, I got this error:
type must be number, but is it number
.Reproduction steps
Expected vs. actual results
I expected an integer to be printed. As simple as that.
Minimal code example
Error messages
Compiler and operating system
Debian with g++-11
Library version
3.11.3
Validation
develop
branch is used.