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

Transition from MailMan.LastJsonData to MailMan.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

mailman = chilkat.CkMailMan()

#  ...
#  ...

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

# jsonObj is a CkJsonObject
jsonObj = mailman.LastJsonData()
if (mailman.get_LastMethodSuccess() == False):
    print(mailman.lastErrorText())
    sys.exit()

#  ...
#  ...

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

jsonOut = chilkat.CkJsonObject()
mailman.GetLastJsonData(jsonOut)