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

Transition from MailMan.LastJsonData to MailMan.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Perl Downloads

Perl
use chilkat();

$mailman = chilkat::CkMailMan->new();

#  ...
#  ...

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

# jsonObj is a JsonObject
$jsonObj = $mailman->LastJsonData();
if ($mailman->get_LastMethodSuccess() == 0) {
    print $mailman->lastErrorText() . "\r\n";
    exit;
}

#  ...
#  ...

#  ------------------------------------------------------------------------
#  Do the equivalent using GetLastJsonData.
#  Your application creates a new, empty JsonObject object which is passed 
#  in the last argument.

$jsonOut = chilkat::CkJsonObject->new();
$mailman->GetLastJsonData($jsonOut);