YYModel
YYModel copied to clipboard
High performance model framework for iOS/OSX.
支持多维数组转化
数组字典多维混合结构待支持,准备增加新的配置类方法加以实现
fixed #190 问题根本原因在于,数组解析时,json 数据格式与目标模型格式不匹配
key 对应的是个字符串,字符串内部是一个 JsonArray,这种情况直接使用yy_modelWithDictionary,这个节点解析不出来,只有先将这个字符串转一下才行。使用 MJExtension 可以,YYModel这种情况好像没有做处理。 
您好,我遇到了一个问题,希望能够听听您的看法: 从服务器获取到的 json dict 模型,我们称之为 server json 吧,它大概长这样: ``` { "name": "应用创造学", "other": "other values", "ext": { "desc": "应用创造学是一门研究创造的学问" } } ``` 然而我希望它在数据库中,是这个样子: ``` { "name": "应用创造学", "other": "other values",...
This is a fix for #278 . hash equality won't work if the object doesn't ovrride the hash method.
``yy_modelIsEqual: `` returns false if models haven't implemented hash function. ``yy_modelIsEqual: `` returns ``NO`` on [NSObject+YYModel.m#LL1753!](https://github.com/ibireme/YYModel/blob/master/YYModel/NSObject%2BYYModel.m#L1753) and this won't work since hash returns the value of the memory address if...
// JSON: { "n":"Harry Pottery", "p": 256, "ext" :[ ////////修改的部分 { "desc" : "A book written by J.K.Rowing."}, { "desc" : "A book written by J.K.Rowing."}, { "desc" : "A...
这个接口定义不太合理, `+[NSArray yy_modelArrayWithClass:MyModel.class json:json]` 不如 `+[MyModel yy_modelArrayWithJson:json]` 自然。 ```objective-c @interface NSArray (YYModel) /** Creates and returns an array from a json-array. This method is thread-safe. @param cls The instance's class...