Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

json.inc.php

Go to the documentation of this file.
00001 <?php
00010 class JSON
00011 {
00018     public static function encode($var)
00019     {
00020         return json_encode($var);
00021     }
00022 
00029     public static function decode($text)
00030     {
00031         return json_decode($text);
00032     }
00033 }
00034 
00035 //create our library do to json stuff if its not compiled in...
00036 if (!function_exists('json_encode') && !function_exists('json_decode'))
00037     require_once("json-lib.inc.php");
00038 ?>

Generated on Fri Oct 27 12:26:40 2006 for BaseJumper by doxygen 1.3.9.1