Sample code for 30+ languages & platforms
Ruby

Transition from Http.LastJsonData to Http.GetLastJsonData

See more HTTP Examples

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Ruby Downloads

Ruby
require 'chilkat'

http = Chilkat::CkHttp.new()

# ...
# ...

# ------------------------------------------------------------------------
# The LastJsonData method is deprecated:

# json1 is a CkJsonObject
json1 = http.LastJsonData()
print json1.emit() + "\n";

# ------------------------------------------------------------------------
# Do the equivalent using GetLastJsonData.

json2 = Chilkat::CkJsonObject.new()
http.GetLastJsonData(json2)
print json2.emit() + "\n";