NSString *path = [[NSBundle mainBundle] pathForResource:@"jsoncode" ofType:@"json"];
NSData *data = [[NSData alloc] initWithContentsOfFile:path];
NSArray *array = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
/
NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:nil];
...
网友评论