[問題] swifty搭配alamofire取json問題
目前使用SwiftyJSON搭配Alamofire
我用print(json)會取得
{
"error" : "0",
"addresses" : "[{\"address\":\"????????15?\",\"latitude\":23.003111,\"longitude\":120.17398,\"createdTime\":\"Apr 8, 2017 12:00:00 AM\",\"id\":3}, {\"address\":\"?????????????\",\"latitude\":23.003111,\"longitude\":120.17398,\"createdTime\":\"Apr 8, 2017 12:00:00 AM\",\"id\":4}]"
}
再用print(json["addresses"])會取得
[{"address":"????????15?","latitude":23.003111,"longitude":120.17398,"createdTime":"Apr 8, 2017 12:00:00 AM","id":3}, {"address":"?????????????","latitude":23.003111,"longitude":120.17398,"createdTime":"Apr 8, 2017 12:00:00 AM","id":4}]
到這都沒問題,但是再來怎麼取都取不出來arrary裡面的東西
可以請問一下該怎麼寫比較好呢
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.83.144.203
※ 文章網址: https://www.ptt.cc/bbs/MacDev/M.1492211306.A.2FF.html
→
04/15 09:17, , 1F
04/15 09:17, 1F
推
04/17 18:29, , 2F
04/17 18:29, 2F
推
04/18 23:23, , 3F
04/18 23:23, 3F
→
04/24 20:44, , 4F
04/24 20:44, 4F