NSArray *array = [NSJSONSerialization JSONObjectWithData:[NSData data] options:NSJSONReadingAllowFragments error:nil];
NSArray *docs = NSSearchPathForDirectoriesInDomains(NSDocumentationDirectory, NSUserDomainMask, YES);
NSString *path = [docs[0] stringByAppendingPathComponent:@"json.plist"];
[array writeToFile:path atomically:YES];
红色[NSData data]是从网络来的数据