Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Array : {
- global = {
- players = {
- 1 = "John Doe, A school";
- 10 = "Jonathan Doe, Another school";
- 2 = "Joe Doe, Another school";
- 3 = "Jane Doe, A school";
- 4 = "Jay Doe, Another school";
- 5 = "Jimmy Doe, A school";
- 6 = "Jeremy Doe, Another school";
- 7 = "Johnny Doe, A school";
- 8 = "Jeremiah Doe, Another school";
- 9 = "Jennifer Doe, A school";
- };
- schools = {
- 1 = "A school";
- 2 = "Another school";
- 3 = "The school";
- 4 = "The other school";
- 5 = "That school";
- };
- text = "A dynamic text that needs to be displayed to the player.";
- };
- for (var i in global ) {
- for(var j in global [i].schools ){
- alert(global [i].schools[j]);
- }
- }
- #import "SBJson.h"
- NSString *jsonString = @"{
- 'name': 'Simon',
- 'address': {'street': '1 High Street', 'town': 'Anytown'}
- }";
- NSDictionary *jsonData = [jsonString JSONValue];
- NSLog(@"Simon lives in %@", [jsonData valueForKeyPath:@"address.town"]);
- Simon lives in Anytown
- data: {
- global: {
- players: [
- "John Doe, A school";
- "Joe Doe, Another school";
- "Jane Doe, A school";
- "Jay Doe, Another school";
- "Jimmy Doe, A school";
- "Jeremy Doe, Another school";
- "Johnny Doe, A school";
- "Jeremiah Doe, Another school";
- "Jennifer Doe, A school";
- "Jonathan Doe, Another school";
- ]
- schools: [
- "A school";
- "Another school";
- "The school";
- "The other school";
- "That school";
- ],
- text: "A dynamic text that needs to be displayed to the player.";
- }
- };
Add Comment
Please, Sign In to add comment