Sample code for 30+ languages & platforms
AutoIt

Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat AutoIt Downloads

AutoIt
Local $bSuccess = False

$oCrypt2 = ObjCreate("Chilkat.Crypt2")

; ...
; ...

; ------------------------------------------------------------------------
; The LastJsonData method is deprecated:

Local $oJsonObj = $oCrypt2.LastJsonData()
If ($oCrypt2.LastMethodSuccess = False) Then
    ConsoleWrite($oCrypt2.LastErrorText & @CRLF)
    Exit
EndIf

; ...
; ...

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

$oJsonOut = ObjCreate("Chilkat.JsonObject")
$oCrypt2.GetLastJsonData $oJsonOut
If ($bSuccess = False) Then
    ConsoleWrite($oCrypt2.LastErrorText & @CRLF)
    Exit
EndIf