Created
May 13, 2013 04:35
-
-
Save mediaash/5566177 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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