mirror of
https://github.com/burrow-dev/burrow-server.git
synced 2026-11-19 01:27:51 -05:00
25 lines
501 B
ActionScript
25 lines
501 B
ActionScript
package com.adobe.serialization.json
|
|
{
|
|
public class JSON
|
|
{
|
|
|
|
public function JSON()
|
|
{
|
|
super();
|
|
}
|
|
|
|
public static function encode(o:Object) : String
|
|
{
|
|
var encoder:JSONEncoder = new JSONEncoder(o);
|
|
return encoder.getString();
|
|
}
|
|
|
|
public static function decode(s:String) : *
|
|
{
|
|
var decoder:JSONDecoder = new JSONDecoder(s);
|
|
return decoder.getValue();
|
|
}
|
|
}
|
|
}
|
|
|