//獲取文件路徑
NSString *path=[[NSBundle mainBundle]pathForResource:@"sina" ofType:@"json"];
//將獲取的文件轉(zhuǎn)為data
NSData *data=[NSData dataWithContentsOfFile:path];
NSLog(@"%@",data);
__autoreleasing NSError *error;
//系統(tǒng)提供的json解析方法
NSDictionary *dic= [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableLeaves error:&error];