Sample code for 30+ languages & platforms
Delphi DLL 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 DLL Downloads

Delphi DLL
var
http: HCkHttp;
json1: HCkJsonObject;
json2: HCkJsonObject;

begin
http := CkHttp_Create();

//  ...
//  ...

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

json1 := CkHttp_LastJsonData(http);
Memo1.Lines.Add(CkJsonObject__emit(json1));
CkJsonObject_Dispose(json1);

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

json2 := CkJsonObject_Create();
CkHttp_GetLastJsonData(http,json2);
Memo1.Lines.Add(CkJsonObject__emit(json2));

CkHttp_Dispose(http);
CkJsonObject_Dispose(json2);