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
It's not entirely clear what optional means. If this is the case when there is a field in the c++ structure, but there is no field in json, then this field will be initialized with the default value or the value set by the Default option.
... and made some assumptions in the StructMappingExceptions (complex-type vs. bool) of the set_bool + set_integral methods and set the value e.g. like this: set<std::optional<bool>>(o, value, it->second);
I did not dig any deeper yet to check if we could have a type optional<bool> and I do not like my poc - even if it works in all my testcases.
Nice library!
Is this able to deal with JSON which has optional fields?
The text was updated successfully, but these errors were encountered: