Just started trying out Cereal. Is there a way to handle null strings and objects?
Opened this issue · 1 comments
oviano commented
I have JSON data that contains some records where the string is null.
Elsewhere I have a nested JSON object, which can be null.
During deserialising, In these cases I would be fine with just getting a default string() or "", and a default object, but I can't see how?
jaskinn commented
I have handled this by adding a null check in the rapidjson GetString
function.