NSString *path=[[NSBundle mainBundle] pathForResource:@"AddressBook" ofType:@"json"];
NSData *data=[NSData dataWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"AddressBook.json" ofType:nil]];
NSLog(@"data1%@",data);
path 是null
data 是null
解決方法:如圖