4 # Hello World - JSON layout{#script-hello}
6 The following JSON code is the minimum required to put the sentence "Hello World" on the screen.
14 "text": "Hello World",
15 "parentOrigin": "CENTER"
20 The following code loads the JSON file
24 Builder builder = Builder::New();
26 std::string json_data(ReadFile("layout.json"));
28 builder.LoadFromString(json_data);
30 builder.AddActors( Stage::GetCurrent().GetRootLayer() );