我已经使用了这种方法。
NSDictionary *jsonObject=[NSJSONSerialization
JSONObjectWithData:jsonData
options:NSJSONReadingMutableLeaves
error:nil];
NSLog(@"jsonObject is %@",jsonObject);
它打印出 "jsonObject is null"。 是否 "error:nil" 有问题? 我没有使用任何url或连接方法。 我有一个json文件,我想在表格中显示它。