RosettaCodeData/Task/JSON/Objeck/json.objeck

15 lines
293 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
use Struct;
use JSON;
bundle Default {
class Json {
function : Main(args : String[]) ~ Nil {
parser := JSONParser->New("{ \"foo\": 1, \"bar\": [10, \"apples\"] }");
root := parser->Parse();
if(root <> Nil) {
root->ToString()->PrintLine();
};
}
}
}