CleanJSON的用法 swift
作者:互联网
下载地址
https://github.com/Pircate/CleanJSON
三种用法
1.Data二进制流转model
2.Array数组转model
3.Dictionary字典转model
let decoder = CleanJSONDecoder() try decoder.decode(Model.self, from: data) // 支持直接解析符合 JSON 规范的字典和数组 try decoder.decode(Model.self, from: ["key": value])
标签:self,用法,decode,CleanJSON,decoder,model,swift,Model 来源: https://www.cnblogs.com/huangzs/p/16400034.html