我正在iphone應用程序上工作。在這裏,我讀的JSON數組我得到它的值到數組我得到以下格式的值:閱讀JSON數組
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.";
};
現在我的問題是,我怎麼能讀的全球各個部分?讀完之後,我如何閱讀學校? etc ...
我假設你在Objective-C編碼 - 是這種情況?或者你在使用Javascript(例如Titanium,PhoneGap等) –