Переглянути джерело

[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