On 12/16/2011 03:46 PM, Anthony Liguori wrote:

Hmm, then we have to introduce NULL into QJson and visitors.

Visitors assume that strings aren't nullable (which is actually true in
JSON and in QString).

I also think that string properties shouldn't be nullable.

Unfortunately, qdev string properties are nullable and there might well be examples in which empty and NULL are different. I'd rather not risk.

But JSON actually has NULL, so not all is lost. I can introduce a nullable_str type in visitors (restricting structs and arrays should be fine, though).

Paolo

Reply via email to