home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Puzzle / Clusterz / Clusterz.swf / scripts / it / gotoandplay / smartfoxserver / json / JSON.as next >
Encoding:
Text File  |  2008-09-12  |  586 b   |  27 lines

  1. package it.gotoandplay.smartfoxserver.json
  2. {
  3.    public class JSON
  4.    {
  5.        
  6.       
  7.       public function JSON()
  8.       {
  9.          super();
  10.       }
  11.       
  12.       public static function decode(param1:String) : Object
  13.       {
  14.          var _loc2_:JSONDecoder = null;
  15.          _loc2_ = new JSONDecoder(param1);
  16.          return _loc2_.getObject();
  17.       }
  18.       
  19.       public static function encode(param1:Object) : String
  20.       {
  21.          var _loc2_:JSONEncoder = null;
  22.          _loc2_ = new JSONEncoder(param1);
  23.          return _loc2_.getString();
  24.       }
  25.    }
  26. }
  27.