Pārlūkot izejas kodu

[jsonSerializer] skip only writeable properties

Exilon 5 gadi atpakaļ
vecāks
revīzija
6a34fa13bb
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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