1.获取文件路径
NSString * jsonPath = [[NSBundle mainBundle] pathForResource:@"Student" ofType:@"json"];
2.将文件内容转化为字符串
NSString * jsonStr = [NSString stringWithContentsOfFile:jsonPath encoding:NSUTF8StringEncoding error:nil];
3.解析,通过JSON将文件字符串转化为数组.
NSArray * arr =[jsonStr objectFromJSONString];
NSLog(@"%@", arr);
原文地址:http://qccccc.blog.51cto.com/6004423/1552647