RosettaCodeData/Task/JSON/Objeck/json.objeck
2023-07-01 13:44:08 -04:00

14 lines
293 B
Text

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