/** * Initialize JSON support */ public static function initJSON() { self::$nativeJSON = function_exists('json_encode'); if (!self::$nativeJSON) { include_once self::$config['base.path'] . "shared/JSON.php"; self::$jsonStrict = new Services_JSON(); self::$jsonLose = new Services_JSON(SERVICES_JSON_LOOSE_TYPE); } self::$isJSONLoaded = true; }