You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type
TPerson = class
Code: Integer;
Name: String;
end;
TOrder = class
Code: Integer;
Person: TPerson;
end;
procedure TForm1.FormCreate(Sender: TObject);
var order: TOrder;
begin
order := TJSON.Parse('{"Code":1,"Person":null}');
if order.Person <> nil then
raise Exception.Create('Error');
end;
The text was updated successfully, but these errors were encountered:
Hi,
Parser does not respect null property.
Example:
type
TPerson = class
Code: Integer;
Name: String;
end;
TOrder = class
Code: Integer;
Person: TPerson;
end;
procedure TForm1.FormCreate(Sender: TObject);
var order: TOrder;
begin
order := TJSON.Parse('{"Code":1,"Person":null}');
if order.Person <> nil then
raise Exception.Create('Error');
end;
The text was updated successfully, but these errors were encountered: