【发布时间】:2017-07-06 07:32:22
【问题描述】:
[
{
"_id": "1212323",
"row": 1,
"column": 1,
"displayType": 0,
"item": {
"type": "category_",
"data": {
"_id": "595a1446cb91951900b0b4b0",
"title": "something",
"fullImage": "http://assets.something.mobi/curated/something (2).jpg",
"halfImage": "http://assets.something.mobi/curated/something (1).jpg"
}
}
},
{
"_id": "595a148ccb91951900b0b4b5",
"row": 2,
"column": 1,
"displayType": 1,
"item": {
"type": "curatedlist",
"data": {
"_id": "595b34abcb9195190c0ae378",
"active": "true",
"title": "sample something list",
"fullImage": "http://assets.something.mobi/curated/something (2).jpg",
"halfImage": "http://assets.something.mobi/curated/something (2).jpg"
}
}
}
]
对于 SwiftyJSON 和 Alamofire 来说非常新,有人请帮我创建一个模型,因为我可以使用 almofire 获得 JSON 响应,但无法为此创建适当的 swifty json 模型
【问题讨论】:
-
既然你用的是Alamofire,那你为什么不用
AlamofireObjectMapper而不是SwifyJSON呢?
标签: json swift3 swifty-json