目前使用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里面的东西
可以请问一下该怎么写比较好呢