VBScript
VBScript
Transition from Http.LastJsonData to Http.GetLastJsonData
See more HTTP Examples
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.Chilkat VBScript Downloads
Dim fso, outFile
Set fso = CreateObject("Scripting.FileSystemObject")
'Create a Unicode (utf-16) output text file.
Set outFile = fso.CreateTextFile("output.txt", True, True)
set http = CreateObject("Chilkat.Http")
' ...
' ...
' ------------------------------------------------------------------------
' The LastJsonData method is deprecated:
' json1 is a Chilkat.JsonObject
Set json1 = http.LastJsonData()
outFile.WriteLine(json1.Emit())
' ------------------------------------------------------------------------
' Do the equivalent using GetLastJsonData.
set json2 = CreateObject("Chilkat.JsonObject")
http.GetLastJsonData json2
outFile.WriteLine(json2.Emit())
outFile.Close