Skip to content

Instantly share code, notes, and snippets.

@mediaash
Created May 13, 2013 04:35
Show Gist options
  • Save mediaash/5566177 to your computer and use it in GitHub Desktop.
Save mediaash/5566177 to your computer and use it in GitHub Desktop.
<?php
/*
* Download
* http://mike.teczno.com/JSON/JSON.phps
*/
require_once(dirname(__FILE__) . "/JSON.php");
if(!function_exists("json_encode")) {
function json_encode($values) {
$obj = new Services_JSON();
return $obj->encode($values);
}
}
if(!function_exists("json_decode")) {
function json_decode($json) {
$obj = new Services_JSON();
return $obj->decode($json);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment