Tcl
Tcl
Transition from Http.LastJsonData to Http.GetLastJsonData
See more HTTP Examples
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.Chilkat Tcl Downloads
load ./chilkat.dll
set http [new_CkHttp]
# ...
# ...
# ------------------------------------------------------------------------
# The LastJsonData method is deprecated:
# json1 is a CkJsonObject
set json1 [CkHttp_LastJsonData $http]
puts [CkJsonObject_emit $json1]
delete_CkJsonObject $json1
# ------------------------------------------------------------------------
# Do the equivalent using GetLastJsonData.
set json2 [new_CkJsonObject]
CkHttp_GetLastJsonData $http $json2
puts [CkJsonObject_emit $json2]
delete_CkHttp $http
delete_CkJsonObject $json2