Sample code for 30+ languages & platforms
Classic ASP

Transition from Http.LastJsonData to Http.GetLastJsonData

See more HTTP Examples

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Classic ASP Downloads

Classic ASP
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
set http = Server.CreateObject("Chilkat.Http")

' ...
' ...

' ------------------------------------------------------------------------
' The LastJsonData method is deprecated:

' json1 is a Chilkat.JsonObject
Set json1 = http.LastJsonData()
Response.Write "<pre>" & Server.HTMLEncode( json1.Emit()) & "</pre>"

' ------------------------------------------------------------------------
' Do the equivalent using GetLastJsonData.

set json2 = Server.CreateObject("Chilkat.JsonObject")
http.GetLastJsonData json2
Response.Write "<pre>" & Server.HTMLEncode( json2.Emit()) & "</pre>"

%>
</body>
</html>