Hi @mvanrijnen, there is a JSONNameAttribute you can use to tweak serialization (and deserialization).
Just decorate your field with JSONName('') to skip serialization/deserialization.
If you need some logic, you can add a special method to your record type and it will be fired by the serialization/deserialization mechanism.
The method should match this signature: TMyRecord.ToJSONFilter(const AMember: TRttiMember; const AObj: TJSONObject): Boolean;
Just return False and implement your logic in the ToJSONFilter method. It is then up to you to add or not the value of AMember to the AObj that is being serialized.
Sincerely,
Andrea