RosettaCodeData/Task/JSON/Objeck/json.objeck

15 lines
293 B
Plaintext

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();
};
}
}
}