Sample code for 30+ languages & platforms
C++

Transition from Http.LastJsonData to Http.GetLastJsonData

See more HTTP Examples

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat C++ Downloads

C++
#include <CkHttp.h>
#include <CkJsonObject.h>

void ChilkatSample(void)
    {
    CkHttp http;

    //  ...
    //  ...

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

    CkJsonObject *json1 = http.LastJsonData();
    std::cout << json1->emit() << "\r\n";
    delete json1;

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

    CkJsonObject json2;
    http.GetLastJsonData(json2);
    std::cout << json2.emit() << "\r\n";
    }