- (void)changes
{
//1.把网络请求得到的数据 StringData 转成 NSData型的jsonData
NSData *jsonData = [StringData dataUsingEncoding:NSUTF8StringEncoding];
//2.把 jsonData 转成 字典 messageDic
NSDictionary *messageDic = [NSJSONSerialization JSONObjectWithData:jsonDataoptions:NSJSONReadingMutableContainerserror:nil];
NSLog(@"%@",messageDic[@"key"]);
// 这个 key 是网络请求得到的数据的key,在取数据的过程中,一定要理清思路怎么去取值。特别注意网络请求的数据有些是字典数组相互嵌套的
}