NSError *error;
NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
data是从网络上获取的NSData类型数据。
将NSData(JSON数据)类型转换成字典
最新推荐文章于 2017-04-11 16:28:34 发布
NSError *error;
NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&error];
data是从网络上获取的NSData类型数据。