Sample code for 30+ languages & platforms
Delphi ActiveX Requires Chilkat v11.0.0+

Transition from Http.LastJsonData to Http.GetLastJsonData

See more HTTP Examples

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Delphi ActiveX Downloads

Delphi ActiveX
var
http: TChilkatHttp;
json1: IChilkatJsonObject;
json2: TChilkatJsonObject;

begin
http := TChilkatHttp.Create(Self);

//  ...
//  ...

//  ------------------------------------------------------------------------
//  The LastJsonData method is deprecated:

json1 := http.LastJsonData();
Memo1.Lines.Add(json1.Emit());

//  ------------------------------------------------------------------------
//  Do the equivalent using GetLastJsonData.

json2 := TChilkatJsonObject.Create(Self);
http.GetLastJsonData(json2.ControlInterface);
Memo1.Lines.Add(json2.Emit());