浏览代码

[jsonSerializer] skip only writeable properties

Exilon 5 年之前
父节点
当前提交
6a34fa13bb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Quick.Json.Serializer.pas

+ 1 - 0
Quick.Json.Serializer.pas

@@ -1111,6 +1111,7 @@ begin
       propertyname := rProp.Name;
       {$IFNDEF FPC}
       comment := '';
+      if not rProp.IsReadable then Continue;
       for attr in rProp.GetAttributes do
       begin
         if attr is TNotSerializableProperty then ExcludeSerialize := True