(PHP ActiveX) Transition from Http.LastJsonData to Http.GetLastJsonData
Provides instructions for replacing deprecated LastJsonData method calls with GetLastJsonData.Note: This example requires Chilkat v11.0.0 or greater.
<?php
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.Http')
$http = new COM("Chilkat.Http");
// ...
// ...
// ------------------------------------------------------------------------
// The LastJsonData method is deprecated:
// json1 is a Chilkat.JsonObject
$json1 = $http->LastJsonData();
print $json1->emit() . "\n";
// ------------------------------------------------------------------------
// Do the equivalent using GetLastJsonData.
// For versions of Chilkat < 10.0.0, use new COM('Chilkat_9_5_0.Chilkat.JsonObject')
$json2 = new COM("Chilkat.JsonObject");
$http->GetLastJsonData($json2);
print $json2->emit() . "\n";
?>
|