Explorar o código

[jsonSerializer] fixed deserialization from delphi standard list serialization

Exilon %!s(int64=5) %!d(string=hai) anos
pai
achega
33f5db7c75
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Quick.Json.Serializer.pas

+ 1 - 1
Quick.Json.Serializer.pas

@@ -593,7 +593,7 @@ begin
 
   member := nil;
   //check if exists List (denotes delphi json serialized) or not (normal json serialized)
-  if aJson.ClassType = TJSONPair then member := GetJsonPairValueByName(aJson,aName);
+  if aJson.ClassType = TJSONObject then member := GetJsonPairValueByName(aJson,aName);
   if member = nil then
   begin
     if aJson.ClassType <> TJSONArray then raise EJsonDeserializeError.CreateFmt('Not valid value for "%s" List',[aName]);