possible to convert JavaScript object to TObject ?

Hi , is it possible to change JavaScript object into Delphi's TObject ?


var myobj : Tobject ;
begin

asm
   obj = { "id":1, "name":"myname" }; 
end ;

//possible to do myobj := obj ?

end ;

That is not directly possible.

You'd need to create a Pascal wrapper class for it.
You can find examples of this in the unit web.pas