浏览代码

[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]);