JSONUITableViewDataSourceでデータを表示しようとして問題が発生しましたJSONからのデータは次のとおりです。
[
"Jon",
"Bill",
"Kristan"
]
JSON自体がバリデーターを通過しました。私が持っているエラーはTableViewsです[2050:f803]トークンの不正な開始[h]
これが私のコードです
NSString *myRawJson = [NSString stringWithFormat:@"http://site.com/json.php"];
if ([myRawJson length] == 0){
return;
}
NSError *error = nil;
SBJsonParser *parser = [[SBJsonParser alloc] init];
tableData =[[parser objectWithString:myRawJson error:&error] copy];
NSLog(@"%@", [error localizedDescription]);
list = [[NSArray alloc] initWithObjects:@"Johan", @"Polo", @"Randi", @"Tomy", nil];
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.