Browse Source

[jsonSerializer] skip only writeable properties

Exilon 5 years ago
parent
commit
6a34fa13bb
1 changed files with 1 additions and 0 deletions
  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