Sample code for 30+ languages & platforms
Chilkat2-Python

Transition from MailMan.LastJsonData to MailMan.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Chilkat2-Python Downloads

Chilkat2-Python
import sys
import chilkat2

mailman = chilkat2.MailMan()

# ...
# ...

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

# jsonObj is a CkJsonObject
jsonObj = mailman.LastJsonData()
if (mailman.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 = chilkat2.JsonObject()
mailman.GetLastJsonData(jsonOut)