我是SWIFT的新手。SWIFT解析問題
我想在SWIFT來解析JSON,但是當我添加jsonresult因爲沒有UTF8StringConversion加入數組值,但是當我轉換,然後我無法將它添加到陣列中的SWIFT
我怎麼能分析該數據,並得到UTF8StringEncoding字典數組。
[
{
"id": "56556523d035cafbdb5dae19",
"club_name": "Tallkrogens IF",
"image_url": "https://s3-eu-west-1.amazonaws.com/openratio-client-sportway/561ceb8b68dd3.jpeg"
},
{
"id": "56556523d035cafbdb5dae1a",
"club_name": "Team Kedde FK",
"image_url": "testing url"
},
{
"id": "56556523d035cafbdb5dae1b",
"club_name": "Tekniska Högskolan FC",
"image_url": "testing url"
},
{
"id": "56556523d035cafbdb5dae1c",
"club_name": "Tensta IF",
"image_url": "testing url"
}
]
您將不得不提供您使用的代碼,否則我們該如何調試? –