创建空的文本文件(新文件/其他/空),例如“ example.json”
将json字符串粘贴到文件中。
使用以下行获取数据:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"example" ofType:@"json"];
NSData data = [NSData dataWithContentsOfFile:filePath];
NSArray json = [NSJSonSerialization JSONObjectWithdata:data options:kNilOptions error:nil];



