Pircate / CleanJSON

Swift JSON decoder for Codable
MIT License
292 stars 40 forks source link

如果json返回来的是个数组怎么整? #8

Closed huyabin closed 4 years ago

huyabin commented 4 years ago

如果json返回来的是个数组怎么整?才开始用swift,希望多多指导

Pircate commented 4 years ago

传[Model].self就可以了

huyabin commented 4 years ago

是否支持字典和数组直接转model?

Pircate commented 4 years ago

没太明白你的意思,建议先了解一下Codable的用法。