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

Objective-C
#import <CkoHttp.h>
#import <CkoJsonObject.h>

CkoHttp *http = [[CkoHttp alloc] init];

//  ...
//  ...

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

CkoJsonObject *json1 = [http LastJsonData];
NSLog(@"%@",[json1 Emit]);

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

CkoJsonObject *json2 = [[CkoJsonObject alloc] init];
[http GetLastJsonData: json2];
NSLog(@"%@",[json2 Emit]);