Преглед на файлове

[jsonSerializer] fixed deserialization from delphi standard list serialization

Exilon преди 5 години
родител
ревизия
33f5db7c75
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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]);