Sample code for 30+ languages & platforms
Lianja

Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Lianja Downloads

Lianja
llSuccess = .F.

loCrypt2 = createobject("CkCrypt2")

// ...
// ...

// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:

loJsonObj = loCrypt2.LastJsonData()
if (loCrypt2.LastMethodSuccess = .F.) then
    ? loCrypt2.LastErrorText
    release loCrypt2
    return
endif

// ...
// ...

release loJsonObj

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

loJsonOut = createobject("CkJsonObject")
loCrypt2.GetLastJsonData(loJsonOut)
if (llSuccess = .F.) then
    ? loCrypt2.LastErrorText
    release loCrypt2
    release loJsonOut
    return
endif



release loCrypt2
release loJsonOut