JSON deserialisation object disposal

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP


JSON deserialisation object disposal



I have some code like this:


vars
json: JadeJson;
objs: ObjectArray;
foo: Foo;
begin
create json transient;
create objs transient;
foo := json.parse(response, Foo, objs).Foo;
// Do something with foo
epilog
delete json;
delete objs;
end;



Is foo deleted by the call to delete objs, or do I need to dispose of it (any any other object stored in objs) separately?









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Makefile test if variable is not empty

Will Oldham

Visual Studio Code: How to configure includePath for better IntelliSense results