Xcode – How do I access integer value in JSON API?
I'm trying to retrieve an integer value from a JSON file in swift. I'm doing this as follows: self.trip.dist = String(decodedJson.Trip[self.tripIndex].LegList.Leg[i].dist) but I'm getting this error error. Here is a link to the JSON file that I'm accessing. I'm trying…