Sample code for 30+ languages & platforms
Ruby

Transition from MailMan.LastJsonData to MailMan.GetLastJsonData

Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.

Chilkat Ruby Downloads

Ruby
require 'chilkat'

mailman = Chilkat::CkMailMan.new()

# ...
# ...

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

# jsonObj is a CkJsonObject
jsonObj = mailman.LastJsonData()
if (mailman.get_LastMethodSuccess() == false)
    print mailman.lastErrorText() + "\n";
    exit
end

# ...
# ...

# ------------------------------------------------------------------------
# Do the equivalent using GetLastJsonData.
# Your application creates a new, empty JsonObject object which is passed 
# in the last argument.

jsonOut = Chilkat::CkJsonObject.new()
mailman.GetLastJsonData(jsonOut)