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

Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat CkPython Downloads

CkPython
import sys
import chilkat

success = False

crypt2 = chilkat.CkCrypt2()

#  ...
#  ...

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

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

#  ...
#  ...

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

jsonOut = chilkat.CkJsonObject()
crypt2.GetLastJsonData(jsonOut)
if (success == False):
    print(crypt2.lastErrorText())
    sys.exit()