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
is discussed in Strict/Relaxed JSON syntax #36
I think, a solution to this will require some internal changes to allow user-defined customizations of the parser.
Do you suggest to have "lossy conversions" for non-matching values? What should Get<int>() return, if doc["key"].IsString() == true? Safe conversions are already supported (e.g. GetInt64() can be used, even if IsUint() == true).
The second point is useful in my opinion for generic coding if one wants to pass the template argument directly to parser. I could through an exception in case the types are not compatible.
Hi,
I would like to suggest two improvements to rapidJson
doc["key"]->Get < int > ();
Thank you,
Ashkan
The text was updated successfully, but these errors were encountered: