Sample code for 30+ languages & platforms
Unicode C++

Transition from Http.LastJsonData to Http.GetLastJsonData

See more HTTP Examples

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Unicode C++ Downloads

Unicode C++
#include <CkHttpW.h>
#include <CkJsonObjectW.h>

void ChilkatSample(void)
    {
    CkHttpW http;

    //  ...
    //  ...

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

    CkJsonObjectW *json1 = http.LastJsonData();
    wprintf(L"%s\n",json1->emit());
    delete json1;

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

    CkJsonObjectW json2;
    http.GetLastJsonData(json2);
    wprintf(L"%s\n",json2.emit());
    }