Sample code for 30+ languages & platforms
Node.js

Transition from MailMan.LastJsonData to MailMan.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var mailman = new chilkat.MailMan();

    //  ...
    //  ...

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

    // jsonObj: JsonObject
    var jsonObj = mailman.LastJsonData();
    if (mailman.LastMethodSuccess == false) {
        console.log(mailman.LastErrorText);
        return;
    }

    //  ...
    //  ...

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

    var jsonOut = new chilkat.JsonObject();
    mailman.GetLastJsonData(jsonOut);

}

chilkatExample();