I like to see SO to support field ignore due a delphi custom attribute like:
SOIgnore = class(TSuperAttribute);
where:
TMyObjet = class
public
fieldA: Integer;
[SOIgnore()]
fieldB: Integer;
end;
obj = TMyObj.Create()
obj.ToJson()
returning
{
fieldA: 1
}
instead of
{
fieldA: 1,
fieldB: 2
}