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

Perl
use chilkat();

$http = chilkat::CkHttp->new();

#  ...
#  ...

#  ------------------------------------------------------------------------
#  The LastJsonData method is deprecated:

# json1 is a JsonObject
$json1 = $http->LastJsonData();
print $json1->emit() . "\r\n";

#  ------------------------------------------------------------------------
#  Do the equivalent using GetLastJsonData.

$json2 = chilkat::CkJsonObject->new();
$http->GetLastJsonData($json2);
print $json2->emit() . "\r\n";