NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT can not parse { "key" : null} #3458
Closed
1 of 2 tasks
Labels
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Description
struct Data{
std::string key;
}
if json likes
{ "key": null }
the NLOHMANN_DEFINE_TYPE_NON_INTRUSIVE_WITH_DEFAULT to "Data" type occurs exception.
if json like
{ "key" : "" }
it' OK.
Reproduction steps
reproduction ...
Expected vs. actual results
error
Minimal code example
No response
Error messages
No response
Compiler and operating system
win10 vs 2017
Library version
develope
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: