mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
Bug fix when deserialize object with custom type and JSON with null value
This commit is contained in:
parent
303aa3d416
commit
8edd6241e6
@ -531,8 +531,12 @@ begin
|
||||
jdtNone:
|
||||
Exit;
|
||||
jdtObject:
|
||||
begin
|
||||
/// <summary>JsonDataObjects assumes values null as jdtObject</summary>
|
||||
if AJsonObject[AName].ObjectValue <> nil then
|
||||
GetTypeSerializers.Items[AValue.TypeInfo].DeserializeAttribute(AValue, AName, AJsonObject[AName].ObjectValue,
|
||||
ACustomAttributes);
|
||||
end;
|
||||
jdtArray:
|
||||
GetTypeSerializers.Items[AValue.TypeInfo].DeserializeAttribute(AValue, AName, AJsonObject[AName].ArrayValue,
|
||||
ACustomAttributes);
|
||||
|
Loading…
Reference in New Issue
Block a user