(Go) Transition from MailMan.LastJsonData to MailMan.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData. Note: This example requires Chilkat v11.0.0 or greater.
mailman := MailMan_Ref.html">chilkat.NewMailMan()
// ...
// ...
// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:
jsonObj := mailman.LastJsonData()
if mailman.LastMethodSuccess() == false {
fmt.Println(mailman.LastErrorText())
mailman.DisposeMailMan()
return
}
// ...
// ...
jsonObj.DisposeJsonObject()
// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// Your application creates a new, empty JsonObject_Ref.html">JsonObject object which is passed
// in the last argument.
jsonOut := JsonObject_Ref.html">chilkat.NewJsonObject()
mailman.GetLastJsonData(jsonOut)
mailman.DisposeMailMan()
jsonOut.DisposeJsonObject()
|