Explorar el Código

[jsonSerializer] skip only writeable properties

Exilon hace 5 años
padre
commit
6a34fa13bb
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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