Exemplo n.º 1
0
 function toString()
 {
     if (function_exists('json_encode')) {
         return json_encode($this);
     } else {
         $json = new ServicesJSON();
         return $json->encode($this);
     }
 }
 function json_encode($content)
 {
     $json = new ServicesJSON();
     return $json->encode($content);
 }