1、data转为model
WeatherModel *model = [WeatherModel mj_objectWithKeyValues:data];
2、data转为字典
NSDictionary *dictionary = [NSJSONSerialization JSONObjectWithData:data options:NSUTF8StringEncoding error:nil];
3、data转为数组(是包含CityAreaNumModel的数组)
NSArray *arr = [CityAreaNumModel mj_objectArrayWithKeyValuesArray:data];
网友评论