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

Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat C# Downloads

C#
bool success = false;

Chilkat.Crypt2 crypt2 = new Chilkat.Crypt2();

//  ...
//  ...

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

Chilkat.JsonObject jsonObj = crypt2.LastJsonData();
if (crypt2.LastMethodSuccess == false) {
    Debug.WriteLine(crypt2.LastErrorText);
    return;
}

//  ...
//  ...

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

Chilkat.JsonObject jsonOut = new Chilkat.JsonObject();
crypt2.GetLastJsonData(jsonOut);
if (success == false) {
    Debug.WriteLine(crypt2.LastErrorText);
    return;
}