We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
我没用过HandyJSON,能给出具体是怎么样的功能吗
Sorry, something went wrong.
指定解析路径
HandyJSON支持指定从哪个具体路径开始解析,反序列化到Model。
class Cat: HandyJSON { var id: Int64! var name: String!
required init() {}
}
let jsonString = "{"code":200,"msg":"success","data":{"cat":{"id":12345,"name":"Kitty"}}}"
if let cat = Cat.deserialize(from: jsonString, designatedPath: "data.cat") { print(cat.name) } 类似这样的功能
知道了
嗯嗯,辛苦啦
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: