14 lines
293 B
Text
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();
|
|
};
|
|
}
|
|
}
|
|
}
|