Sample code for 30+ languages & platforms
Node.js

Transition from Http.LastJsonData to Http.GetLastJsonData

See more HTTP Examples

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Node.js Downloads

Node.js
NODEJS_PRELUDE

function chilkatExample() {

    var http = new chilkat.Http();

    //  ...
    //  ...

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

    // json1: JsonObject
    var json1 = http.LastJsonData();
    console.log(json1.Emit());

    //  ------------------------------------------------------------------------
    //  Do the equivalent using GetLastJsonData.

    var json2 = new chilkat.JsonObject();
    http.GetLastJsonData(json2);
    console.log(json2.Emit());

}

chilkatExample();