2,8 → 2,8 |
|
require_once 'JSON/JSON.php'; |
|
function json_encode($arg) |
{ |
if (!function_exists('json_encode')) { |
function json_encode($arg) { |
global $services_json; |
if (!isset($services_json)) { |
$services_json = new Services_JSON(); |
10,9 → 10,10 |
} |
return $services_json->encode($arg); |
} |
} |
|
function json_decode($arg) |
{ |
if (!function_exists('json_decode')) { |
function json_decode($arg) { |
global $services_json; |
if (!isset($services_json)) { |
$services_json = new Services_JSON(); |
19,5 → 20,4 |
} |
return $services_json->decode($arg); |
} |
|
?> |
} |