Sample code for 30+ languages & platforms
Delphi ActiveX

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
uses
    Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
    Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Chilkat_TLB;

...

procedure TForm1.Button1Click(Sender: TObject);
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());
end;