Closed kattunga closed 8 years ago
Null means "JavaScript null". And that means that it is an object. And JsonDataObject doesn't allow to cast an object to a value type. Also a Variant Null can't be casted to a String, Integer, ... directly without throwing an exception.
You can now control this by setting "JsonSerializationConfig.NullConvertsToValueTypes" to "True". The default is "False".
now if we try to cast a null value to any type of data an exception is raised:
Why don't we cast nulls like if it is jdtNone?
Also DataSet fields cast nulls to required datatypes:
Also VarToString function:
I would like to implement this but I like to ask you first.
Regards Christian