目前使用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裡面的東西
可以請問一下該怎麼寫比較好呢