NSString *sampleData = @"{\"id\":1,\"name\":\"NickName\",\"sex\":\"Male\",\"PhoneNo\":18818157583,\"comment\":\"Thisiscomment\",\"profile\":\"nothing is impossible\"}";
NSDictionary *dict = [NSJSONSerialization JSONObjectWithData:[sampleData dataUsingEncoding:NSUTF8StringEncoding] options:(NSJSONReadingMutableContainers) error:nil];
CustomModel *model = [ [CustomModel alloc] initWithDict: dict];
原文链接:https://www.f2er.com/json/290379.html