wlandgraf
(Wagner Landgraf)
5
You can't simply cast a TJSObject to an object declared as a Pascal object:
It doesn't work, because internally they have different structures.
You should declare your TClient class as external and treat lists as arrays:
TClient = class external name 'Object'
firstName: string;
lastName: string;
AddressList: TArray<TAddress>;
end;
Reference:
1 Like