Classic ASP
Classic ASP
Transition from Crypt2.LastJsonData to Crypt2.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.Chilkat Classic ASP Downloads
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<%
success = 0
set crypt2 = Server.CreateObject("Chilkat.Crypt2")
' ...
' ...
' ------------------------------------------------------------------------
' The LastJsonData method is deprecated:
' jsonObj is a Chilkat.JsonObject
Set jsonObj = crypt2.LastJsonData()
If (crypt2.LastMethodSuccess = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( crypt2.LastErrorText) & "</pre>"
Response.End
End If
' ...
' ...
' ------------------------------------------------------------------------
' Do the equivalent using GetLastJsonData.
' Your application creates a new, empty JsonObject object which is passed
' in the last argument and filled upon success.
set jsonOut = Server.CreateObject("Chilkat.JsonObject")
crypt2.GetLastJsonData jsonOut
If (success = 0) Then
Response.Write "<pre>" & Server.HTMLEncode( crypt2.LastErrorText) & "</pre>"
Response.End
End If
%>
</body>
</html>